fixed build workflow #4
@@ -15,6 +15,8 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
@@ -25,8 +27,8 @@ jobs:
|
|||||||
context: ./api
|
context: ./api
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/stoat-admin-api:latest
|
ghcr.io/${{ env.REPO_OWNER }}/stoat-admin-api:latest
|
||||||
ghcr.io/${{ github.repository_owner }}/stoat-admin-api:${{ github.sha }}
|
ghcr.io/${{ env.REPO_OWNER }}/stoat-admin-api:${{ github.sha }}
|
||||||
|
|
||||||
build-web:
|
build-web:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -35,6 +37,8 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
@@ -47,5 +51,5 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
VITE_API_URL=http://127.0.0.1:5181
|
VITE_API_URL=http://127.0.0.1:5181
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/stoat-admin-web:latest
|
ghcr.io/${{ env.REPO_OWNER }}/stoat-admin-web:latest
|
||||||
ghcr.io/${{ github.repository_owner }}/stoat-admin-web:${{ github.sha }}
|
ghcr.io/${{ env.REPO_OWNER }}/stoat-admin-web:${{ github.sha }}
|
||||||
|
|||||||
Reference in New Issue
Block a user