fixed build workflow #4

Open
JMR-dev wants to merge 1 commits from fix-workflow-formatting-issues into main
+8 -4
View File
@@ -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 }}