Skip to content

Commit d65c466

Browse files
committed
ci: Use dynamic repository owner for GHCR image paths
1 parent d3ec47a commit d65c466

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
docker load < artifacts/boulder-arm64/boulder-image-arm64.tar.gz
138138
139139
VERSION="${{ needs.build-artifacts.outputs.version }}"
140-
BASE_TAG="ghcr.io/letsencrypt/boulder:${{ github.ref_name }}-go${VERSION}"
140+
BASE_TAG="ghcr.io/${{ github.repository_owner }}/boulder:${{ github.ref_name }}-go${VERSION}"
141141
142142
# Tag with architecture-specific tags for manifest creation
143143
docker tag "boulder:${VERSION}-amd64" "${BASE_TAG}-amd64"
@@ -151,14 +151,14 @@ jobs:
151151
- name: Push architecture-specific images
152152
run: |
153153
VERSION="${{ needs.build-artifacts.outputs.version }}"
154-
BASE_TAG="ghcr.io/letsencrypt/boulder:${{ github.ref_name }}-go${VERSION}"
154+
BASE_TAG="ghcr.io/${{ github.repository_owner }}/boulder:${{ github.ref_name }}-go${VERSION}"
155155
docker push "${BASE_TAG}-amd64"
156156
docker push "${BASE_TAG}-arm64"
157157
158158
- name: Create and push multi-platform manifest
159159
run: |
160160
VERSION="${{ needs.build-artifacts.outputs.version }}"
161-
BASE_TAG="ghcr.io/letsencrypt/boulder:${{ github.ref_name }}-go${VERSION}"
161+
BASE_TAG="ghcr.io/${{ github.repository_owner }}/boulder:${{ github.ref_name }}-go${VERSION}"
162162
163163
docker buildx imagetools create -t "${BASE_TAG}" \
164164
"${BASE_TAG}-amd64" \
@@ -171,5 +171,5 @@ jobs:
171171
--build-arg "GO_VERSION=${{ needs.build-artifacts.outputs.go_version }}" \
172172
-f test/ct-test-srv/Dockerfile \
173173
--platform linux/amd64,linux/arm64 \
174-
-t "ghcr.io/letsencrypt/ct-test-srv:${{ github.ref_name }}-go${VERSION}" \
174+
-t "ghcr.io/${{ github.repository_owner }}/ct-test-srv:${{ github.ref_name }}-go${VERSION}" \
175175
--push

.github/workflows/try-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ jobs:
5656
run: cat boulder*.checksums.txt
5757

5858
- name: Build ct-test-srv container
59-
run: docker buildx build . --build-arg "GO_VERSION=${{ matrix.GO_VERSION }}" -f test/ct-test-srv/Dockerfile -t "ghcr.io/letsencrypt/ct-test-srv:${{ github.sha }}-go${{ matrix.GO_VERSION }}-${{ matrix.ARCH }}" --load
59+
run: docker buildx build . --build-arg "GO_VERSION=${{ matrix.GO_VERSION }}" -f test/ct-test-srv/Dockerfile -t "ghcr.io/${{ github.repository_owner }}/ct-test-srv:${{ github.sha }}-go${{ matrix.GO_VERSION }}-${{ matrix.ARCH }}" --load

0 commit comments

Comments
 (0)