Skip to content

Commit 99b0f26

Browse files
committed
lower organization name
1 parent 7b6a7d6 commit 99b0f26

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/docker_image.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,23 +87,24 @@ jobs:
8787
- name: Create and push multi-arch manifest
8888
run: |
8989
VERSION=${GITHUB_REF#refs/tags/}
90+
OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
9091
9192
# Retag the loaded images
92-
docker tag config-tool:dev-amd64 ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION-amd64
93-
docker tag config-tool:dev-arm64 ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION-arm64
93+
docker tag config-tool:dev-amd64 ghcr.io/$OWNER/config-tool:$VERSION-amd64
94+
docker tag config-tool:dev-arm64 ghcr.io/$OWNER/config-tool:$VERSION-arm64
9495
9596
# Push arch-specific images
96-
docker push ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION-amd64
97-
docker push ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION-arm64
97+
docker push ghcr.io/$OWNER/config-tool:$VERSION-amd64
98+
docker push ghcr.io/$OWNER/config-tool:$VERSION-arm64
9899
99100
# Create and push manifests
100-
docker manifest create ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION \
101-
--amend ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION-amd64 \
102-
--amend ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION-arm64
101+
docker manifest create ghcr.io/$OWNER/config-tool:$VERSION \
102+
--amend ghcr.io/$OWNER/config-tool:$VERSION-amd64 \
103+
--amend ghcr.io/$OWNER/config-tool:$VERSION-arm64
103104
104-
docker manifest create ghcr.io/${{ github.repository_owner }}/config-tool:latest \
105-
--amend ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION-amd64 \
106-
--amend ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION-arm64
105+
docker manifest create ghcr.io/$OWNER/config-tool:latest \
106+
--amend ghcr.io/$OWNER/config-tool:$VERSION-amd64 \
107+
--amend ghcr.io/$OWNER/config-tool:$VERSION-arm64
107108
108-
docker manifest push ghcr.io/${{ github.repository_owner }}/config-tool:$VERSION
109-
docker manifest push ghcr.io/${{ github.repository_owner }}/config-tool:latest
109+
docker manifest push ghcr.io/$OWNER/config-tool:$VERSION
110+
docker manifest push ghcr.io/$OWNER/config-tool:latest

0 commit comments

Comments
 (0)