From 69dbcd0570c18787b5fbd443cdb65cf53c72dd57 Mon Sep 17 00:00:00 2001 From: Francesco Medas Date: Wed, 7 Feb 2024 09:36:46 +0400 Subject: [PATCH] fix --- .github/workflows/ci-image-dev.yml | 50 ++++++++++++++++-------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci-image-dev.yml b/.github/workflows/ci-image-dev.yml index 4ac3ab237..c6ecd4776 100644 --- a/.github/workflows/ci-image-dev.yml +++ b/.github/workflows/ci-image-dev.yml @@ -18,28 +18,30 @@ jobs: contents: write name: build runs-on: docker + env: + GCP_REGISTRY_DOMAIN: asia-docker.pkg.dev + GCP_REGISTRY: asia-docker.pkg.dev/${{ secrets.GCP_STG_REGISTRY_PROJECT_ID }}/zilliqa-private steps: - - name: Clean environment - # Prune the Docker resources created over 10 days before the current execution (change the value for a more/less aggressive cleanup). - shell: bash - run: | - docker system df - docker system prune -a -f --filter "until=168h" - docker system df - - name: 'Checkout scm ${{ inputs.commitOrTag }}' - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: ${{ inputs.commitOrTag }} - - name: Docker build and push - uses: Zilliqa/gh-actions-workflows/actions/ci-dockerized-app-build-push@v1 - with: - file: docker/Dockerfile - push: true - tag: ${{ secrets.AWS_ACCOUNT_ID_ZILLIQA }}.dkr.ecr.${{ secrets.AWS_REGION_ZILLIQA }}.amazonaws.com/scilla - tag-length: 8 - registry: ${{ secrets.AWS_ACCOUNT_ID_ZILLIQA }}.dkr.ecr.${{ secrets.AWS_REGION_ZILLIQA }}.amazonaws.com - aws-region: ${{ secrets.AWS_REGION_ZILLIQA }} - role-to-assume: ${{ secrets.ECR_DEPLOYER_ROLE }} - oidc-role: ${{ secrets.OIDC_ROLE }} - cache-key: ${{ github.event.repository.name }} + - name: Clean environment + # Prune the Docker resources created over 10 days before the current execution (change the value for a more/less aggressive cleanup). + shell: bash + run: | + docker system df + docker system prune -a -f --filter "until=168h" + docker system df + - name: 'Checkout scm ${{ inputs.commitOrTag }}' + uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ inputs.commitOrTag }} + - name: Docker build and push + uses: Zilliqa/gh-actions-workflows/actions/ci-dockerized-app-build-push@v1 + with: + file: docker/Dockerfile + push: true + tag: ${{ env.GCP_REGISTRY }}/scilla + tag-length: 8 + registry: ${{ env.GCP_REGISTRY_DOMAIN }} + workload-identity-provider: "${{ secrets.GCP_PRD_GITHUB_WIF }}" + service-account: "${{ secrets.GCP_STG_GITHUB_SA_DOCKER_REGISTRY }}" + cache-key: ${{ github.event.repository.name }}