Skip to content

Commit 826d6af

Browse files
ci: fix GHCR tags to lowercase owner
1 parent cc98cb6 commit 826d6af

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,47 +32,49 @@ jobs:
3232
TAG=${GITHUB_REF_NAME}
3333
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
3434
echo "tag=${TAG}" >> $GITHUB_OUTPUT
35+
OWNER_LC=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
36+
echo "owner_lc=${OWNER_LC}" >> $GITHUB_OUTPUT
3537
36-
- name: Build and push API image
38+
- name: Build and push API image
3739
uses: docker/build-push-action@v5
3840
with:
3941
context: .
4042
file: tweetpulse-pipeline/Dockerfile.api
4143
push: true
4244
tags: |
43-
ghcr.io/${{ github.repository_owner }}/tweetpulse-api:latest
44-
ghcr.io/${{ github.repository_owner }}/tweetpulse-api:${{ steps.vars.outputs.version }}
45-
ghcr.io/${{ github.repository_owner }}/tweetpulse-api:${{ steps.vars.outputs.tag }}
45+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-api:latest
46+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-api:${{ steps.vars.outputs.version }}
47+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-api:${{ steps.vars.outputs.tag }}
4648

47-
- name: Build and push Producer image
49+
- name: Build and push Producer image
4850
uses: docker/build-push-action@v5
4951
with:
5052
context: .
5153
file: tweetpulse-pipeline/Dockerfile.producer
5254
push: true
5355
tags: |
54-
ghcr.io/${{ github.repository_owner }}/tweetpulse-producer:latest
55-
ghcr.io/${{ github.repository_owner }}/tweetpulse-producer:${{ steps.vars.outputs.version }}
56-
ghcr.io/${{ github.repository_owner }}/tweetpulse-producer:${{ steps.vars.outputs.tag }}
56+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-producer:latest
57+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-producer:${{ steps.vars.outputs.version }}
58+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-producer:${{ steps.vars.outputs.tag }}
5759

58-
- name: Build and push Consumer image
60+
- name: Build and push Consumer image
5961
uses: docker/build-push-action@v5
6062
with:
6163
context: .
6264
file: tweetpulse-pipeline/Dockerfile.consumer
6365
push: true
6466
tags: |
65-
ghcr.io/${{ github.repository_owner }}/tweetpulse-consumer:latest
66-
ghcr.io/${{ github.repository_owner }}/tweetpulse-consumer:${{ steps.vars.outputs.version }}
67-
ghcr.io/${{ github.repository_owner }}/tweetpulse-consumer:${{ steps.vars.outputs.tag }}
67+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-consumer:latest
68+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-consumer:${{ steps.vars.outputs.version }}
69+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-consumer:${{ steps.vars.outputs.tag }}
6870

69-
- name: Build and push Dashboard image
71+
- name: Build and push Dashboard image
7072
uses: docker/build-push-action@v5
7173
with:
7274
context: .
7375
file: tweetpulse-dashboard/Dockerfile.dashboard
7476
push: true
7577
tags: |
76-
ghcr.io/${{ github.repository_owner }}/tweetpulse-dashboard:latest
77-
ghcr.io/${{ github.repository_owner }}/tweetpulse-dashboard:${{ steps.vars.outputs.version }}
78-
ghcr.io/${{ github.repository_owner }}/tweetpulse-dashboard:${{ steps.vars.outputs.tag }}
78+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-dashboard:latest
79+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-dashboard:${{ steps.vars.outputs.version }}
80+
ghcr.io/${{ steps.vars.outputs.owner_lc }}/tweetpulse-dashboard:${{ steps.vars.outputs.tag }}

0 commit comments

Comments
 (0)