diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index c7ad9ce..1881d6f 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -28,6 +28,10 @@ jobs: bodyFile: "" token: ${{ secrets.GITHUB_TOKEN }} + - name: Get release version + id: get_version + run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10}) + - name: Publish to Registry uses: HurricanKai/Publish-Docker-Github-Action@master with: @@ -35,4 +39,4 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} dockerfile: docker/Dockerfile - tag_names: true + tags: "latest,${{ env.RELEASE_VERSION }}"