diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ae1c29..7f5afc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -139,22 +139,22 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - # - name: Docker meta - # id: meta # you'll use this in the next step - # uses: docker/metadata-action@v3 - # with: - # # list of Docker images to use as base name for tags - # images: | - # ghcr.io/${{ github.repository }} - # # Docker tags based on the following events/attributes - # tags: | - # type=schedule - # type=ref,event=branch - # type=ref,event=pr - # type=semver,pattern={{version}} - # type=semver,pattern={{major}}.{{minor}} - # type=semver,pattern={{major}} - # type=sha + - name: Docker meta + id: meta # you'll use this in the next step + uses: docker/metadata-action@v3 + with: + # list of Docker images to use as base name for tags + images: | + ghcr.io/${{ github.repository }} + # Docker tags based on the following events/attributes + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha - name: Build and push uses: docker/build-push-action@v2 @@ -162,5 +162,5 @@ jobs: context: . platforms: linux/amd64,linux/arm push: true - tags: swing-opensource/swingmusic:${{ inputs.tag }} - # labels: ${{ steps.meta.outputs.labels }}w + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}w