diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca87bc9..73301ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,13 +89,20 @@ jobs: username: ${{ env.BOT_USER_NAME }} password: ${{ secrets.BOT_GITHUB_DOCKER_TOKEN }} + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v4.6.0 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Build Docker Image and Push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v4.1.1 with: context: . push: true tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.CURRENT_VERSION }} - labels: latest, ${{ env.CURRENT_VERSION }} + labels: ${{ steps.meta.outputs.labels }} + provenance: false - name: Push POM updates with release version uses: EndBug/add-and-commit@v9