Skip to content

Commit 084fb6c

Browse files
Fix: Use marketplace action for lowercase conversion in workflow
1 parent 7103a7c commit 084fb6c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/docker-build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ jobs:
2222
username: ${{ github.repository_owner }}
2323
password: ${{ secrets.GITHUB_TOKEN }}
2424

25+
- name: Convert owner name to lowercase
26+
id: string
27+
uses: vishalmamidi/lowercase-action@v1
28+
with:
29+
string: ${{ github.repository_owner }}
30+
2531
- name: Build and push Docker image
2632
uses: docker/build-push-action@v4
2733
with:
2834
context: ./agents
2935
file: ./agents/Dockerfile
3036
push: true
3137
tags: |
32-
ghcr.io/${{ github.repository_owner,, }}/clay-i-agent:latest
33-
ghcr.io/${{ github.repository_owner,, }}/clay-i-agent:v15
38+
ghcr.io/${{ steps.string.outputs.lowercase }}/clay-i-agent:latest
39+
ghcr.io/${{ steps.string.outputs.lowercase }}/clay-i-agent:v15

0 commit comments

Comments
 (0)