diff --git a/.github/workflows/build_push_master.yaml b/.github/workflows/build_push_master.yaml index 3a400ba..11cc9f2 100644 --- a/.github/workflows/build_push_master.yaml +++ b/.github/workflows/build_push_master.yaml @@ -18,13 +18,18 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Get and set tag + shell: bash + run: | + echo "TAG=${GITHUB_SHA}" >> $GITHUB_ENV - name: Build and push id: docker_build uses: docker/build-push-action@v2 with: push: true - tags: statcan/ingress-istio-controller:${{ env.GITHUB_SHA }} + tags: statcan/ingress-istio-controller:${{ env.TAG }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file