Skip to content

Commit 603e72f

Browse files
committed
Convert repository name to lowercase
1 parent 695c36b commit 603e72f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ubuntu.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ jobs:
3131
--build-arg GCC_VERSION=${{ matrix.version.gcc }} \
3232
--tag ${DOCKER_REGISTRY}/${{ github.repository }}/${{ matrix.version.os }}:gcc${{ matrix.version.gcc }}
3333
- name: Push the Docker image
34-
run: docker push ${DOCKER_REGISTRY}/${{ github.repository }}/${{ matrix.version.os }}:gcc${{ matrix.version.gcc }}
34+
run: |
35+
# Convert the repository name to lowercase as the organization name is
36+
# uppercase, which is not permitted by the Docker registry.
37+
DOCKER_REPOSITORY=${GITHUB_REPOSITORY,,}
38+
docker push ${DOCKER_REGISTRY}/${DOCKER_REPOSITORY}/${{ github.repository }}/${{ matrix.version.os }}:gcc${{ matrix.version.gcc }}
3539
3640
# Build the Docker image for Ubuntu using different versions of Clang.
3741
clang:
@@ -57,4 +61,8 @@ jobs:
5761
--build-arg CLANG_VERSION=${{ matrix.version.clang }} \
5862
--tag ${DOCKER_REGISTRY}/${{ github.repository }}/${{ matrix.version.os }}:clang${{ matrix.version.clang }}
5963
- name: Push the Docker image
60-
run: docker push ${DOCKER_REGISTRY}/${{ github.repository }}/${{ matrix.version.os }}:clang${{ matrix.version.clang }}
64+
run: |
65+
# Convert the repository name to lowercase as the organization name is
66+
# uppercase, which is not permitted by the Docker registry.
67+
DOCKER_REPOSITORY=${GITHUB_REPOSITORY,,}
68+
docker push ${DOCKER_REGISTRY}/${DOCKER_REPOSITORY}/${{ matrix.version.os }}:clang${{ matrix.version.clang }}

0 commit comments

Comments
 (0)