fix(governance-snapshot): DEVOPS-376 bind submission to the wallet's active signer (Bearby "Address mismatch") #1657
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CICD staging" | |
| on: | |
| # Test run before merging | |
| pull_request: | |
| branches: | |
| - main | |
| # On merged | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-docker: | |
| permissions: | |
| id-token: write | |
| contents: write | |
| runs-on: ubuntu-22.04 | |
| if: github.actor != 'dependabot[bot]' && github.ref_name == 'main' | |
| name: "Deploy image" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| application: | |
| [ | |
| governance-api, | |
| governance-snapshot, | |
| multisig, | |
| scilla-server, | |
| zillion, | |
| ] | |
| include: | |
| - application: multisig | |
| image_name: multisig | |
| path: products/multisig | |
| tag_length: 8 | |
| tag_latest: false | |
| - application: governance-api | |
| image_name: governance-api | |
| path: products/governance-api | |
| tag_length: 8 | |
| tag_latest: false | |
| - application: governance-snapshot | |
| image_name: governance-snapshot | |
| path: products/governance-snapshot | |
| tag_length: 8 | |
| tag_latest: false | |
| - application: scilla-server | |
| image_name: scilla-server | |
| path: products/scilla-server | |
| tag_length: 8 | |
| tag_latest: false | |
| - application: zillion | |
| image_name: zillion | |
| path: products/zillion | |
| 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@v6 | |
| with: | |
| submodules: "true" | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| fetch-depth: 0 | |
| - name: Docker build and push - staging | |
| uses: Zilliqa/gh-actions-workflows/actions/ci-dockerized-app-build-push@v4 | |
| with: | |
| context: ${{ matrix.path }} | |
| push: ${{ github.ref_name == github.event.repository.default_branch }} | |
| tag: asia-docker.pkg.dev/prj-d-devops-services-4dgwlsse/zilliqa-public/${{ matrix.image_name }} | |
| tag-length: ${{ matrix.tag_length }} | |
| tag-latest: ${{ matrix.tag_latest }} | |
| registry: asia-docker.pkg.dev | |
| workload-identity-provider: "${{ secrets.GCP_PRD_GITHUB_WIF }}" | |
| service-account: "${{ secrets.GCP_STG_GITHUB_SA_DOCKER_REGISTRY }}" | |
| cache-key: ${{ env.REGISTRY }}/${{ matrix.image_name }}-cache | |
| build-args: | | |
| DEPLOY_ENV=stg |