Skip to content

Commit 3cb9910

Browse files
Arta AsadiArta Asadi
Arta Asadi
authored and
Arta Asadi
committed
fix: remove all demo import and export scripts
1 parent 74a2d6a commit 3cb9910

File tree

14 files changed

+3
-639
lines changed

14 files changed

+3
-639
lines changed

.github/workflows/go.yaml

Lines changed: 3 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: Go
66
on:
77
workflow_dispatch:
88
inputs:
9-
buildImportDemo:
9+
buildDex:
1010
type: choice
11-
description: "build demo import images and dex image"
11+
description: "build dex image"
1212
options:
1313
- "true"
1414
- "false"
@@ -85,7 +85,6 @@ jobs:
8585
es-sink-service: ${{ steps.build_services.outputs.es-sink-service }}
8686
query-runner-job: ${{ steps.build_services.outputs.query-runner-job }}
8787
query-validator-job: ${{ steps.build_services.outputs.query-validator-job }}
88-
demo-importer-job: ${{ steps.build_services.outputs.demo-importer-job }}
8988
cloudql-init-job: ${{ steps.build_services.outputs.cloudql-init-job }}
9089
task-service: ${{ steps.build_services.outputs.task-service }}
9190
rego-service: ${{ steps.build_services.outputs.rego-service }}
@@ -920,101 +919,9 @@ jobs:
920919
PLUGIN_REGISTRY=ghcr.io/opengovern
921920
context: .
922921

923-
deploy-import-data-script:
924-
runs-on: ubuntu-latest
925-
needs:
926-
- tag
927-
if: github.event.inputs.buildImportDemo == 'true'
928-
permissions:
929-
id-token: write
930-
contents: read
931-
environment: docker
932-
steps:
933-
- name: Checkout code
934-
uses: actions/checkout@v4
935-
- name: Log in to the Container registry
936-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
937-
with:
938-
registry: ghcr.io
939-
username: ${{ github.actor }}
940-
password: ${{ secrets.GHCR_PAT }}
941-
- name: Build and push Docker images
942-
uses: docker/build-push-action@v4
943-
with:
944-
push: true
945-
tags: |
946-
ghcr.io/${{ github.repository_owner }}/import-data-script:${{ needs.tag.outputs.latest_tag }}
947-
file: docker/ImportDataScriptDockerfile
948-
build-args: |
949-
PLUGIN_REGISTRY=ghcr.io/opengovern
950-
context: .
951-
deploy-export-data-script:
952-
runs-on: ubuntu-latest
953-
needs:
954-
- tag
955-
if: github.event.inputs.buildImportDemo == 'true'
956-
permissions:
957-
id-token: write
958-
contents: read
959-
environment: docker
960-
steps:
961-
- name: Checkout code
962-
uses: actions/checkout@v4
963-
- name: Log in to the Container registry
964-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
965-
with:
966-
registry: ghcr.io
967-
username: ${{ github.actor }}
968-
password: ${{ secrets.GHCR_PAT }}
969-
- name: Build and push Docker images
970-
uses: docker/build-push-action@v4
971-
with:
972-
push: true
973-
tags: |
974-
ghcr.io/${{ github.repository_owner }}/export-data-script:${{ needs.tag.outputs.latest_tag }}
975-
file: docker/ExportDataScriptDockerfile
976-
build-args: |
977-
PLUGIN_REGISTRY=ghcr.io/opengovern
978-
context: .
979-
deploy-demo-importer-job:
980-
runs-on: ubuntu-latest
981-
needs:
982-
- build
983-
- tag
984-
permissions:
985-
id-token: write
986-
contents: read
987-
environment: docker
988-
if: needs.build.outputs.demo-importer-job == 'true' && github.event_name != 'pull_request'
989-
steps:
990-
- name: Checkout code
991-
uses: actions/checkout@v4
992-
- name: Download artifact
993-
uses: actions/download-artifact@v4
994-
with:
995-
name: build
996-
path: .
997-
- name: Unpack artifact
998-
run: |
999-
tar -xvf build.tar.gz
1000-
- name: Log in to the Container registry
1001-
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
1002-
with:
1003-
registry: ghcr.io
1004-
username: ${{ github.actor }}
1005-
password: ${{ secrets.GHCR_PAT }}
1006-
- name: Build and push Docker images
1007-
uses: docker/build-push-action@v4
1008-
with:
1009-
push: true
1010-
tags: |
1011-
ghcr.io/${{ github.repository_owner }}/demo-importer-job:${{ needs.tag.outputs.latest_tag }}
1012-
file: docker/DemoImporterJobDockerfile
1013-
context: .
1014-
1015922
deploy-dex-login:
1016923
runs-on: ubuntu-latest
1017-
if: github.event.inputs.buildImportDemo == 'true'
924+
if: github.event.inputs.buildDex == 'true'
1018925
needs:
1019926
- tag
1020927
permissions:

cmd/demo-importer-job/main.go

Lines changed: 0 additions & 36 deletions
This file was deleted.

docker/DemoImporterJobDockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

docker/ExportDataScriptDockerfile

Lines changed: 0 additions & 31 deletions
This file was deleted.

docker/ImportDataScriptDockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

jobs/demo-importer-job/cmd.go

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)