Skip to content

Commit 8b6ed7c

Browse files
author
Alec Thomson
committed
Merge branch 'docker-fix'
2 parents 0979285 + a5d9610 commit 8b6ed7c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
steps:
2424
- name: Check out the repo
2525
uses: actions/checkout@v4
26-
26+
- name: downcase REPO
27+
run: |
28+
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
2729
- name: Determine tag suffix
2830
id: tag_suffix
2931
run: |
@@ -47,7 +49,7 @@ jobs:
4749
uses: docker/metadata-action@v5
4850
with:
4951
images: |
50-
${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.name }}
52+
${{ env.REGISTRY }}/$REPO/${{ matrix.name }}
5153
tags: |
5254
type=raw,value=${{ env.TAG_SUFFIX }}
5355
@@ -60,18 +62,18 @@ jobs:
6062
context: .
6163
file: Dockerfile-${{ matrix.name }} # Builds the correct Dockerfile
6264
push: true
63-
tags: ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.name }}:${{ env.TAG_SUFFIX }} # Explicitly set tag
65+
tags: ${{ env.REGISTRY }}/$REPO/${{ matrix.name }}:${{ env.TAG_SUFFIX }} # Explicitly set tag
6466
labels: ${{ steps.meta.outputs.labels }}
6567
cache-from: type=gha
6668
cache-to: type=gha,mode=max
6769

6870
# - name: Debug build output
6971
# run: |
70-
# docker images ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.name }}
72+
# docker images ${{ env.REGISTRY }}/$REPO/${{ matrix.name }}
7173

7274
# - name: Debug attestation input
7375
# run: |
74-
# echo "Subject name: ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.name }}:${{ env.TAG_SUFFIX }}"
76+
# echo "Subject name: ${{ env.REGISTRY }}/$REPO/${{ matrix.name }}:${{ env.TAG_SUFFIX }}"
7577
# echo "Subject digest: ${{ steps.push.outputs.digest }}"
7678

7779
# - name: Generate artifact attestation

0 commit comments

Comments
 (0)