From 7214af3dd52d0ae372ac8543fab5f2a0c53cea1f Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Mon, 27 Apr 2026 21:23:55 -0500 Subject: [PATCH] fixed build workflow --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c5dd62d..8823390 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,8 @@ jobs: packages: write steps: - uses: actions/checkout@v4 + - name: Lowercase repo owner + run: echo "REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV - uses: docker/login-action@v3 with: registry: ghcr.io @@ -25,8 +27,8 @@ jobs: context: ./api push: true tags: | - ghcr.io/${{ github.repository_owner }}/stoat-admin-api:latest - ghcr.io/${{ github.repository_owner }}/stoat-admin-api:${{ github.sha }} + ghcr.io/${{ env.REPO_OWNER }}/stoat-admin-api:latest + ghcr.io/${{ env.REPO_OWNER }}/stoat-admin-api:${{ github.sha }} build-web: runs-on: ubuntu-latest @@ -35,6 +37,8 @@ jobs: packages: write steps: - uses: actions/checkout@v4 + - name: Lowercase repo owner + run: echo "REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV - uses: docker/login-action@v3 with: registry: ghcr.io @@ -47,5 +51,5 @@ jobs: build-args: | VITE_API_URL=http://127.0.0.1:5181 tags: | - ghcr.io/${{ github.repository_owner }}/stoat-admin-web:latest - ghcr.io/${{ github.repository_owner }}/stoat-admin-web:${{ github.sha }} + ghcr.io/${{ env.REPO_OWNER }}/stoat-admin-web:latest + ghcr.io/${{ env.REPO_OWNER }}/stoat-admin-web:${{ github.sha }} -- 2.47.3