Skip to content

Commit a70ddee

Browse files
committed
Added manifest
1 parent 0d2762c commit a70ddee

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/docker.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,19 @@ jobs:
5252
registry: ghcr.io
5353
username: ${{ github.repository_owner }}
5454
password: ${{ secrets.GITHUB_TOKEN }}
55-
- uses: int128/docker-manifest-create-action@v2
56-
id: manifest
57-
with:
58-
tags: |
59-
ghcr.io/${{ github.repository }}:${{ matrix.version }}
60-
sources: |
61-
ghcr.io/${{ github.repository }}-linux-amd64:${{ matrix.version }}
55+
- name: Create
56+
run: |
57+
docker manifest create ghcr.io/${{ github.repository }}:${{ matrix.version }} \
58+
--amend ghcr.io/${{ github.repository }}-linux-amd64:${{ matrix.version }} \
59+
--amend ghcr.io/${{ github.repository }}-linux-arm64:${{ matrix.version }}
60+
- name: Annotate
61+
run: |
62+
docker manifest annotate --arch arm64 --os linux \
63+
ghcr.io/${{ github.repository }}:${{ matrix.version }} \
6264
ghcr.io/${{ github.repository }}-linux-arm64:${{ matrix.version }}
63-
index-annotations: |
64-
org.opencontainers.image.source=https://github.com/${{ github.repository }}
65-
org.opencontainers.image.version=${{ matrix.version }}
65+
docker manifest annotate --arch amd64 --os linux \
66+
ghcr.io/${{ github.repository }}:${{ matrix.version }} \
67+
ghcr.io/${{ github.repository }}-linux-amd64:${{ matrix.version }}
68+
- name: Push
69+
run: |
70+
docker manifest push ghcr.io/${{ github.repository }}:${{ matrix.version }}

0 commit comments

Comments
 (0)