Skip to content

Commit f8226f8

Browse files
committed
ci: Use dynamic repository owner for GHCR image paths
1 parent 908a45a commit f8226f8

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
@@ -136,7 +136,7 @@ jobs:
136136
docker load < artifacts/boulder-arm64/boulder-image-arm64.tar.gz
137137
138138
VERSION="${{ needs.build-artifacts.outputs.version }}"
139-
BASE_TAG="ghcr.io/letsencrypt/boulder:${{ github.ref_name }}-go${VERSION}"
139+
BASE_TAG="ghcr.io/${{ github.repository_owner }}/boulder:${{ github.ref_name }}-go${VERSION}"
140140
141141
# Tag with architecture-specific tags for manifest creation
142142
docker tag "boulder:${VERSION}-amd64" "${BASE_TAG}-amd64"
@@ -150,14 +150,14 @@ jobs:
150150
- name: Push architecture-specific images
151151
run: |
152152
VERSION="${{ needs.build-artifacts.outputs.version }}"
153-
BASE_TAG="ghcr.io/letsencrypt/boulder:${{ github.ref_name }}-go${VERSION}"
153+
BASE_TAG="ghcr.io/${{ github.repository_owner }}/boulder:${{ github.ref_name }}-go${VERSION}"
154154
docker push "${BASE_TAG}-amd64"
155155
docker push "${BASE_TAG}-arm64"
156156
157157
- name: Create and push multi-platform manifest
158158
run: |
159159
VERSION="${{ needs.build-artifacts.outputs.version }}"
160-
BASE_TAG="ghcr.io/letsencrypt/boulder:${{ github.ref_name }}-go${VERSION}"
160+
BASE_TAG="ghcr.io/${{ github.repository_owner }}/boulder:${{ github.ref_name }}-go${VERSION}"
161161
162162
docker buildx imagetools create -t "${BASE_TAG}" \
163163
"${BASE_TAG}-amd64" \
@@ -170,5 +170,5 @@ jobs:
170170
--build-arg "GO_VERSION=${{ needs.build-artifacts.outputs.version }}" \
171171
-f test/ct-test-srv/Dockerfile \
172172
--platform linux/amd64,linux/arm64 \
173-
-t "ghcr.io/letsencrypt/ct-test-srv:${{ github.ref_name }}-go${VERSION}" \
173+
-t "ghcr.io/${{ github.repository_owner }}/ct-test-srv:${{ github.ref_name }}-go${VERSION}" \
174174
--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)