From 0bdd11d7dc99dfe77b0db82ed7c9ee53835250cb Mon Sep 17 00:00:00 2001 From: Devon Bear Date: Fri, 14 Jun 2024 14:55:19 -0400 Subject: [PATCH] feat(ci): Make CI great again (#1486) --- .github/workflows/pipeline.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index c214144975..019ced223d 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 == 'refs/heads/main' && 'main') || (github.ref == 'refs/tags/v*' && github.ref_name) || github.sha }} 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