From 8c128219fc86309986fc5fbc3ee900b8e044f5c9 Mon Sep 17 00:00:00 2001 From: robcxyz Date: Mon, 1 Nov 2021 21:34:46 -0700 Subject: [PATCH] chore: update prod release ci [ci skip] --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a97481..74be2f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,7 @@ jobs: env: ECR_REGISTRY: ${{ steps.login-ecr-api.outputs.registry }} ECR_REPOSITORY: icon-metrics-api - IMAGE_TAG: ${{ github.run_number }} + IMAGE_TAG: ${{ steps.source.outputs.TAG }} run: | docker build --target prod --build-arg SERVICE_NAME=api -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG @@ -163,6 +163,13 @@ jobs: value: ${{ steps.source.outputs.TAG }} branch: main createPR: 'false' - message: 'metrics prod deployment (mainnet) image versions to ${{ github.run_number }}' + message: 'metrics prod deployment (mainnet) image versions to ${{ steps.source.outputs.TAG }}' token: ${{ secrets.ICON_CHARTS_PAT }} updateFile: true + + - name: Push tags + run: | + git tag -f metrics-prod-uswest2 + git tag -f metrics-prod-euwest2 + git push -f origin --tags + working-directory: charts