diff --git a/.github/workflows/docker_image_release.yml b/.github/workflows/docker_image_release.yml index 858c4380..e567dc88 100644 --- a/.github/workflows/docker_image_release.yml +++ b/.github/workflows/docker_image_release.yml @@ -24,10 +24,17 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Get tag + id: tag + uses: dawidd6/action-get-tag@v1 + with: + # Strip `v` prefix + strip_v: true - name: Build and push uses: docker/build-push-action@v2 with: context: . push: true - tags: coedl/elpis:${GITHUB_REF:11} \ No newline at end of file + tags: coedl/elpis:${{steps.tag.outputs.tag}}