diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f5e0b02a..6524fbc9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -28,6 +28,36 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # will generate a git tag => then, used by docker/metadata-action + - name: Semantic Release + id: semantic_release + uses: cycjimmy/semantic-release-action@v4 + with: + branches: | + [ + '+([0-9])?(.{+([0-9]),x}).x', + 'master', + 'main', + 'next', + 'next-major', + { + name: 'beta', + prerelease: true + }, + { + name: 'alpha', + prerelease: true + }, + { + name: 'app-router', + prerelease: true + } + ] + branch: 'main' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5