diff --git a/.github/workflows/docker-image-publish-test.yml b/.github/workflows/docker-image-publish-test.yml index bd64084..70f6dd9 100644 --- a/.github/workflows/docker-image-publish-test.yml +++ b/.github/workflows/docker-image-publish-test.yml @@ -45,6 +45,7 @@ jobs: fetch-depth: 0 persist-credentials: false - name: Semantic Release + id: semantic-release uses: cycjimmy/semantic-release-action@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -77,9 +78,8 @@ jobs: org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}} flavor: | latest=true - prefix=test tags: | - type=semver,pattern={{version}} + type=raw,prefix=test,value=${{ steps.semantic.outputs.new_release_version }} # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.