From e0d8df94a81b4d4df7986e9eda2e22b5a25506de Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 9 Sep 2022 15:02:15 +0900 Subject: [PATCH] Update workflow to build frontend and backend images --- .github/workflows/publish-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 0ed945c7..44562185 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -45,3 +45,21 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} + + - name: Build a backend image and push + uses: docker/build-push-action@v3 + with: + context: . + file: ./docker/Dockerfile.prod + push: ${{ github.event_name != 'pull_request' }} + tags: doccano/doccano:backend + labels: ${{ steps.docker_meta.outputs.labels }} + + - name: Build a frontend image and push + uses: docker/build-push-action@v3 + with: + context: . + file: ./docker/Dockerfile.nginx + push: ${{ github.event_name != 'pull_request' }} + tags: doccano/doccano:frontend + labels: ${{ steps.docker_meta.outputs.labels }}