From 4bc49d3df119a6d831b1a2c0193813ebaebd4a6b Mon Sep 17 00:00:00 2001 From: Jared Edwards Date: Tue, 28 Sep 2021 21:57:12 -0600 Subject: [PATCH] add additional step for tag value --- .github/workflows/publish.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 28add965e..e3a7b162d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,10 +18,14 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Get the version + id: get_version + run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) - name: Build and push id: docker_build uses: docker/build-push-action@v2 with: push: true - tags: kubefirst/nebulous:${GITHUB_REF##*/} + tags: kubefirst/nebulous:${{ steps.get_version.outputs.VERSION }}