diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ccc7a13656..66170ea785 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,21 +17,24 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - name: Login to Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }} - name: Build and push + id: push uses: docker/build-push-action@v6 with: + context: . push: true - tags: ghcr.io/${{ github.repository }}:${{ github.sha }},ghcr.io/${{ github.repository }}:latest + tags: ${{ steps.meta.outputs.tags }} - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: