diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 870858e..053fc6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,16 +27,29 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push + - name: Build and push backend uses: docker/build-push-action@v4 with: context: . + file: Dockerfile-backend platforms: linux/amd64,linux/arm64 push: true cache-from: type=gha cache-to: type=gha,mode=max tags: | - ghcr.io/langaracpsc/langaracoursewatcher:latest + ghcr.io/langaracpsc/langaracoursewatcher-backend:latest + + - name: Build and push api + uses: docker/build-push-action@v4 + with: + context: . + file: Dockerfile-api + platforms: linux/amd64,linux/arm64 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + tags: | + ghcr.io/langaracpsc/langaracoursewatcher-api:latest deployment: needs: build