|
6 | 6 | on:
|
7 | 7 | workflow_dispatch:
|
8 | 8 | inputs:
|
9 |
| - buildImportDemo: |
| 9 | + buildDex: |
10 | 10 | type: choice
|
11 |
| - description: "build demo import images and dex image" |
| 11 | + description: "build dex image" |
12 | 12 | options:
|
13 | 13 | - "true"
|
14 | 14 | - "false"
|
|
85 | 85 | es-sink-service: ${{ steps.build_services.outputs.es-sink-service }}
|
86 | 86 | query-runner-job: ${{ steps.build_services.outputs.query-runner-job }}
|
87 | 87 | query-validator-job: ${{ steps.build_services.outputs.query-validator-job }}
|
88 |
| - demo-importer-job: ${{ steps.build_services.outputs.demo-importer-job }} |
89 | 88 | cloudql-init-job: ${{ steps.build_services.outputs.cloudql-init-job }}
|
90 | 89 | task-service: ${{ steps.build_services.outputs.task-service }}
|
91 | 90 | rego-service: ${{ steps.build_services.outputs.rego-service }}
|
@@ -920,101 +919,9 @@ jobs:
|
920 | 919 | PLUGIN_REGISTRY=ghcr.io/opengovern
|
921 | 920 | context: .
|
922 | 921 |
|
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 |
| - |
1015 | 922 | deploy-dex-login:
|
1016 | 923 | runs-on: ubuntu-latest
|
1017 |
| - if: github.event.inputs.buildImportDemo == 'true' |
| 924 | + if: github.event.inputs.buildDex == 'true' |
1018 | 925 | needs:
|
1019 | 926 | - tag
|
1020 | 927 | permissions:
|
|
0 commit comments