From a32b60834c31fe41398aac5c22c497f7b7db4843 Mon Sep 17 00:00:00 2001 From: Sal Tijerina Date: Mon, 13 Nov 2023 13:50:54 -0600 Subject: [PATCH] fix varsg --- .github/workflows/apcd-cms.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/apcd-cms.yml b/.github/workflows/apcd-cms.yml index 324802e9..24b5cc38 100644 --- a/.github/workflows/apcd-cms.yml +++ b/.github/workflows/apcd-cms.yml @@ -1,5 +1,5 @@ name: APCD CMS Builds -run-name: ${{ github.actor }} is building Docker Image for APCD CMS on branch ${{ github.actor }} +run-name: ${{ github.actor }} is building Docker Image for APCD CMS on branch ${{ github.ref_name }} on: workflow_dispatch: push: @@ -18,9 +18,10 @@ jobs: uses: actions/checkout@v4 - name: Set shortsha and branch environment variables + id: vars run: | - echo "BRANCH_NAME=$(echo ${GITHUB_REF_NAME} | sed 's/[^[:alnum:]\.\_\-]/-/g')" >> "$GITHUB_ENV"; - echo "SHORT_SHA=${GITHUB_SHA::7}" >> "$GITHUB_ENV"; + echo "BRANCH_NAME=$(echo ${GITHUB_REF_NAME} | sed 's/[^[:alnum:]\.\_\-]/-/g')" >> "$GITHUB_OUTPUT"; + echo "SHORT_SHA=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"; - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -36,4 +37,4 @@ jobs: with: context: apcd-cms push: true - tags: taccwma/apcd-cms:$SHORT_SHA,taccwma/apcd-cms:$BRANCH_NAME + tags: taccwma/apcd-cms:${{ steps.vars.outputs.SHORT_SHA }},taccwma/apcd-cms:${{ steps.vars.outputs.BRANCH_NAME }}