From 15cc9a32534d8ecf3a9b7f2b81d5933063979145 Mon Sep 17 00:00:00 2001 From: Pablo Suarez Date: Tue, 26 Aug 2025 12:05:40 +0300 Subject: [PATCH] feat: DEVOPS-2227 decommission devex pipelines --- ...n-pr-bazel-test-ubuntu-22.04.yml.disabled} | 0 .github/workflows/cicd-prd.yml | 87 +------------------ .github/workflows/cicd-stg.yml | 77 +--------------- 3 files changed, 2 insertions(+), 162 deletions(-) rename .github/workflows/{ci-on-pr-bazel-test-ubuntu-22.04.yml => ci-on-pr-bazel-test-ubuntu-22.04.yml.disabled} (100%) diff --git a/.github/workflows/ci-on-pr-bazel-test-ubuntu-22.04.yml b/.github/workflows/ci-on-pr-bazel-test-ubuntu-22.04.yml.disabled similarity index 100% rename from .github/workflows/ci-on-pr-bazel-test-ubuntu-22.04.yml rename to .github/workflows/ci-on-pr-bazel-test-ubuntu-22.04.yml.disabled diff --git a/.github/workflows/cicd-prd.yml b/.github/workflows/cicd-prd.yml index d2e206424..527d528f9 100644 --- a/.github/workflows/cicd-prd.yml +++ b/.github/workflows/cicd-prd.yml @@ -90,89 +90,4 @@ jobs: cache-key: ${{ env.REGISTRY }}/${{ matrix.image_name }}-cache build-args: | DEPLOY_ENV=prd - VITE_ENV="PROD" - - build-makefile: - permissions: - id-token: write - contents: write - runs-on: ubuntu-22.04 - name: "Build image with Makefile" - strategy: - fail-fast: false - matrix: - application: [devex] - include: - - application: devex - image_name: devex - path: products/devex - tag_length: 8 - tag_latest: false - env: - DOCKER_DOMAIN: asia-docker.pkg.dev - REGISTRY: asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-public - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - submodules: recursive - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - fetch-depth: 0 - - - name: "Authenticate to Google Cloud - production" - id: google-auth - uses: "google-github-actions/auth@v1" - with: - token_format: "access_token" - workload_identity_provider: "${{ secrets.GCP_PRD_GITHUB_WIF }}" - service_account: "${{ secrets.GCP_PRD_GITHUB_SA_DOCKER_REGISTRY }}" - create_credentials_file: true - - - name: Login to the registry - production - uses: docker/login-action@v2 - with: - registry: ${{ env.DOCKER_DOMAIN }} - username: "oauth2accesstoken" - password: "${{ steps.google-auth.outputs.access_token }}" - - - name: Get tag version - production - if: github.event_name == 'push' - id: set-tag - uses: Zilliqa/gh-actions-workflows/actions/generate-tag@v1 - with: - tag: ${{ env.REGISTRY }}/${{ matrix.image_name }} - length: ${{ matrix.tag_length }} - - - name: "Build and push ${{ matrix.application }} - production" - if: github.event_name == 'push' - env: - ENVIRONMENT: prd - IMAGE_TAG: ${{ steps.set-tag.outputs.tags }} - ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }} - ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }} - run: | - cd ${{ matrix.path }} - make image/build-and-push - - - name: "Build and push ${{ matrix.application }} - production" - if: github.event_name == 'release' - env: - ENVIRONMENT: prd - IMAGE_TAG: ${{ env.REGISTRY }}/${{ matrix.image_name }}:${{ github.ref_name }} - ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }} - ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }} - run: | - cd ${{ matrix.path }} - make image/build-and-push - - - name: "Build and push ${{ matrix.application }} tag latest - production" - if: matrix.tag_latest == true && github.event_name == 'release' - env: - ENVIRONMENT: prd - IMAGE_TAG: ${{ env.REGISTRY }}/${{ matrix.image_name }}:latest - ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }} - ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }} - run: | - cd ${{ matrix.path }} - make image/build-and-push + VITE_ENV="PROD" \ No newline at end of file diff --git a/.github/workflows/cicd-stg.yml b/.github/workflows/cicd-stg.yml index a468dd6a9..3e73f1d4d 100644 --- a/.github/workflows/cicd-stg.yml +++ b/.github/workflows/cicd-stg.yml @@ -80,79 +80,4 @@ jobs: service-account: "${{ secrets.GCP_STG_GITHUB_SA_DOCKER_REGISTRY }}" cache-key: ${{ env.REGISTRY }}/${{ matrix.image_name }}-cache build-args: | - DEPLOY_ENV=stg - - build-makefile: - permissions: - id-token: write - contents: write - runs-on: ubuntu-22.04 - # To test deployments, remove the github.ref_name clause: see devops/docs/z2-testing-apps.md - rrw 2024-04-12 - # && github.ref_name == 'main' - if: github.actor != 'dependabot[bot]' - name: "Build image with Makefile" - strategy: - fail-fast: false - matrix: - application: [devex] - include: - - application: devex - image_name: devex - path: products/devex - tag_length: 8 - tag_latest: false - env: - DOCKER_DOMAIN: asia-docker.pkg.dev - REGISTRY: asia-docker.pkg.dev/prj-d-devops-services-4dgwlsse/zilliqa-public - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - submodules: recursive - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - fetch-depth: 0 - - - name: "Authenticate to Google Cloud - staging" - id: google-auth - uses: "google-github-actions/auth@v1" - with: - token_format: "access_token" - workload_identity_provider: "${{ secrets.GCP_PRD_GITHUB_WIF }}" - service_account: "${{ secrets.GCP_STG_GITHUB_SA_DOCKER_REGISTRY }}" - create_credentials_file: true - - - name: Login to the registry - staging - uses: docker/login-action@v2 - with: - registry: ${{ env.DOCKER_DOMAIN }} - username: "oauth2accesstoken" - password: "${{ steps.google-auth.outputs.access_token }}" - - - name: Get tag version - staging - id: set-tag - uses: Zilliqa/gh-actions-workflows/actions/generate-tag@v1 - with: - tag: ${{ env.REGISTRY }}/${{ matrix.image_name }} - length: ${{ matrix.tag_length }} - - - name: "Build and push ${{ matrix.application }} - staging" - env: - ENVIRONMENT: stg - IMAGE_TAG: ${{ steps.set-tag.outputs.tags }} - ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }} - ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }} - run: | - cd ${{ matrix.path }} - make image/build-and-push - - - name: "Build and push ${{ matrix.application }} tag latest - staging" - if: ${{ matrix.tag_latest == true }} - env: - ENVIRONMENT: stg - IMAGE_TAG: "${{ env.REGISTRY }}/${{ matrix.image_name }}:latest" - ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }} - ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }} - run: | - cd ${{ matrix.path }} - make image/build-and-push + DEPLOY_ENV=stg \ No newline at end of file