diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 096f35e..00523b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,8 +51,8 @@ jobs: - name: Build the Docker image run: | echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - docker build . --file Dockerfile --tag ghcr.io/nicolaschan/minecraft-backup:$RELEASE_VERSION --tag ghcr.io/nicolaschan/minecraft-backup:latest - docker push ghcr.io/nicolaschan/minecraft-backup:$RELEASE_VERSION + docker build . --file Dockerfile --tag ghcr.io/nicolaschan/minecraft-backup:${GITHUB_REF#refs/*/} --tag ghcr.io/nicolaschan/minecraft-backup:latest + docker push ghcr.io/nicolaschan/minecraft-backup:${GITHUB_REF#refs/*/} docker push ghcr.io/nicolaschan/minecraft-backup:latest - name: Create Release