Skip to content

Commit 2ff1c2a

Browse files
committed
Use lower case owner
1 parent a1102e5 commit 2ff1c2a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ jobs:
2828
registry: ghcr.io
2929
username: ${{ github.actor }}
3030
password: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Set lowercase owner
32+
run: echo "OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
3133
- name: Build and push
3234
uses: docker/build-push-action@v5
3335
with:
3436
context: .
3537
platforms: linux/amd64,linux/arm64
3638
push: true
37-
tags: lbugdb/api-server:latest, lbugdb/api-server:${{ env.VERSION }}, ghcr.io/${{ github.repository_owner }}/api-server:latest, ghcr.io/${{ github.repository_owner }}/api-server:${{ env.VERSION }}
39+
tags: lbugdb/api-server:latest, lbugdb/api-server:${{ env.VERSION }}, ghcr.io/${{ env.OWNER }}/api-server:latest, ghcr.io/${{ env.OWNER }}/api-server:${{ env.VERSION }}
3840
build-args: |
3941
SKIP_GRAMMAR=true
4042
SKIP_BUILD_APP=true

0 commit comments

Comments
 (0)