Skip to content

Commit

Permalink
try to fix workdir for gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
jonerrr committed May 29, 2024
1 parent faec526 commit 67cf931
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
include:
- dockerfile: ./backend/Dockerfile
image: ghcr.io/${{ github.repository_owner }}/trainstatus-backend
context: ./backend
tags: |
ghcr.io/${{ github.repository_owner }}/trainstatus-backend:latest
ghcr.io/${{ github.repository_owner }}/trainstatus-backend:${{ github.event.release.tag_name }}
- dockerfile: ./frontend/Dockerfile
image: ghcr.io/${{ github.repository_owner }}/trainstatus-frontend
context: ./frontend
tags: |
ghcr.io/${{ github.repository_owner }}/trainstatus-frontend:latest
ghcr.io/${{ github.repository_owner }}/trainstatus-frontend:${{ github.event.release.tag_name }}
Expand All @@ -42,11 +44,12 @@ jobs:
with:
images: ${{ matrix.image }}
tags: ${{ matrix.tags }}
context: ${{ matrix.context }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 67cf931

Please sign in to comment.