Skip to content

Commit cd99dfc

Browse files
authored
Fix build
1 parent 7928e17 commit cd99dfc

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,17 @@ jobs:
4040
registry: ${{ env.REGISTRY }}
4141
username: ${{ github.actor }}
4242
password: ${{ secrets.GITHUB_TOKEN }}
43-
43+
- name: Extract Docker metadata
44+
id: meta
45+
uses: docker/metadata-action@v5
46+
with:
47+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4448
- name: Build and push Docker image
4549
id: build-and-push
4650
uses: docker/build-push-action@v6
4751
with:
4852
push: ${{ github.event_name != 'pull_request' }}
53+
labels: ${{ steps.meta.outputs.labels }}
4954
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}-${{ matrix.arch }}
5055
platforms: ${{ matrix.platform }}
5156
cache-from: type=gha
@@ -68,10 +73,10 @@ jobs:
6873
tags: |
6974
type=ref,event=branch
7075
type=sha
76+
latest=${{github.ref == 'refs/heads/main' }}
7177
flavor: latest=${{ github.ref == 'refs/heads/main' }}
7278
- uses: Noelware/docker-manifest-action@v1
7379
with:
7480
tags: ${{ steps.meta.outputs.tags }}
75-
annotations: ${{ steps.meta.outputs.annotations }}
7681
inputs: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}-arm64,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}-amd64
7782
push: true

0 commit comments

Comments
 (0)