Skip to content

Commit 2feb431

Browse files
ci: fix YAML indentation and use toLower() for GHCR owner
1 parent 826d6af commit 2feb431

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,49 +32,47 @@ 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
3735
38-
- name: Build and push API image
36+
- name: Build and push API image
3937
uses: docker/build-push-action@v5
4038
with:
4139
context: .
4240
file: tweetpulse-pipeline/Dockerfile.api
4341
push: true
4442
tags: |
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 }}
43+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-api:latest
44+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-api:${{ steps.vars.outputs.version }}
45+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-api:${{ steps.vars.outputs.tag }}
4846
49-
- name: Build and push Producer image
47+
- name: Build and push Producer image
5048
uses: docker/build-push-action@v5
5149
with:
5250
context: .
5351
file: tweetpulse-pipeline/Dockerfile.producer
5452
push: true
5553
tags: |
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 }}
54+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-producer:latest
55+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-producer:${{ steps.vars.outputs.version }}
56+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-producer:${{ steps.vars.outputs.tag }}
5957
60-
- name: Build and push Consumer image
58+
- name: Build and push Consumer image
6159
uses: docker/build-push-action@v5
6260
with:
6361
context: .
6462
file: tweetpulse-pipeline/Dockerfile.consumer
6563
push: true
6664
tags: |
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 }}
65+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-consumer:latest
66+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-consumer:${{ steps.vars.outputs.version }}
67+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-consumer:${{ steps.vars.outputs.tag }}
7068
71-
- name: Build and push Dashboard image
69+
- name: Build and push Dashboard image
7270
uses: docker/build-push-action@v5
7371
with:
7472
context: .
7573
file: tweetpulse-dashboard/Dockerfile.dashboard
7674
push: true
7775
tags: |
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 }}
76+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-dashboard:latest
77+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-dashboard:${{ steps.vars.outputs.version }}
78+
ghcr.io/${{ toLower(github.repository_owner) }}/tweetpulse-dashboard:${{ steps.vars.outputs.tag }}

0 commit comments

Comments
 (0)