Skip to content

Commit f4d22d7

Browse files
committed
Publish merged image
1 parent 74c973b commit f4d22d7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,35 @@ jobs:
5858
path: ${{ runner.temp }}/digests/*
5959
if-no-files-found: error
6060
retention-days: 1
61+
62+
publish-docker-image:
63+
name: Publish Docker image
64+
65+
runs-on: ubuntu-latest
66+
67+
needs:
68+
- build-docker-image
69+
70+
steps:
71+
- name: Download digests
72+
uses: actions/download-artifact@v4
73+
with:
74+
path: ${{ runner.temp }}/digests
75+
pattern: digests-*
76+
merge-multiple: true
77+
78+
- name: Login to GHCR
79+
uses: docker/login-action@v3
80+
with:
81+
registry: ghcr.io
82+
username: ${{ github.actor }}
83+
password: ${{ secrets.GITHUB_TOKEN }}
84+
85+
- name: Set up Docker Buildx
86+
uses: docker/setup-buildx-action@v3
87+
88+
- name: Create manifest list and push
89+
working-directory: ${{ runner.temp }}/digests
90+
run: |
91+
docker buildx imagetools create -t ghcr.io/louismt/ddns-proxy:latest \
92+
$(printf 'ghcr.io/louismt/ddns-proxy@sha256:%s ' *)

0 commit comments

Comments
 (0)