diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7c10db..3684632 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} @@ -42,11 +44,12 @@ jobs: with: images: ${{ matrix.image }} tags: ${{ matrix.tags }} + context: ${{ matrix.context }} - name: Build and push Docker image uses: docker/build-push-action@v5.3.0 with: - context: . + context: ${{ matrix.context }} file: ${{ matrix.dockerfile }} push: true tags: ${{ steps.meta.outputs.tags }}