diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index c214144975..1ecf01f112 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -47,8 +47,8 @@ env: GCP_SERVICE_ACCOUNT: 'sa-apps-deployment@prj-berachain-automation-st-01.iam.gserviceaccount.com' GCP_REGISTRY: northamerica-northeast1-docker.pkg.dev GHCR_REGISTRY: ghcr.io - PUSH_DOCKER_IMAGE: ${{ (github.base_ref == github.head_ref && github.event_name == 'push') || github.ref == 'refs/tags/v*.*.*'}} - VERSION: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/tags/v*.*.*' ) && github.ref_name || github.sha }} + PUSH_DOCKER_IMAGE: ${{ (github.base_ref == github.head_ref && github.event_name == 'push') || github.ref == 'refs/tags/v*'}} + VERSION: ${{ github.ref }} jobs: @@ -181,6 +181,7 @@ jobs: echo "GitHub Head Ref: ${{ github.head_ref }}" echo "GitHub Base Ref: ${{ github.base_ref }}" echo "PUSH_DOCKER_IMAGE: ${{ env.PUSH_DOCKER_IMAGE }}" + echo "VERSION: ${{ env.VERSION }}" - name: Build Docker image run: | make build-docker