fix autocomplete #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DockerFile CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "dev" ] | |
pull_request: | |
branches: [ "main" ] | |
types: [closed] | |
jobs: | |
build-and-push: | |
if: > | |
github.event_name == 'pull_request' && github.event.pull_request.merged == true || | |
github.event_name == 'push' || | |
github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Build and push Django Backend Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./backend | |
file: ./backend/Dockerfile.Prod | |
push: true | |
tags: piorigin/django-sae-devapp-alt:latest | |
- name: Build and push VueJS Frontend Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./frontend | |
file: ./frontend/Dockerfile | |
push: true | |
tags: piorigin/vuejs-sae-devapp-alt:latest |