Browse Source

Update workflow to build frontend and backend images

pull/1992/head
Hironsan 2 years ago
parent
commit
e0d8df94a8
1 changed files with 18 additions and 0 deletions
  1. 18
      .github/workflows/publish-image.yml

18
.github/workflows/publish-image.yml

@ -45,3 +45,21 @@ jobs:
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} 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 }}
Loading…
Cancel
Save