Skip to content

Merge pull request #9 from Angel-Dijoux/dependabot/pip/gevent-23.9.1 #68

Merge pull request #9 from Angel-Dijoux/dependabot/pip/gevent-23.9.1

Merge pull request #9 from Angel-Dijoux/dependabot/pip/gevent-23.9.1 #68

Workflow file for this run

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