fix: if code_nsf is null #75
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: Deployment | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/**' | |
- '.vscode/**' | |
env: | |
MARIADB_ROOT_PASSWORD: ${{ secrets.MARIADB_ROOT_PASSWORD }} | |
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} | |
DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }} | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Stop running Docker container | |
run: docker stop api | |
- name: remove container | |
run: docker rm api | |
- name: Remove previous Docker image | |
run: docker rmi onisep_api-api:latest | |
- name: Build and Run Docker container | |
run: docker-compose up -d |