Deploy application #233
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: Deploy application | |
on: | |
workflow_run: | |
workflows: [ "Static Checks" ] | |
types: | |
- completed | |
jobs: | |
upload: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to Docker Hub | |
run: echo ${{ secrets.GH_PSW }} | docker login -u ${{ secrets.GH_USR }} --password-stdin | |
- name: stub env | |
run: cp .env.example .env | |
- name: build image | |
run: | | |
docker-compose build server | |
- name: Push the Docker image to Docker Hub | |
run: | | |
docker push art3xa/fastapi-template:latest |