Nginx_Deploy #25
Workflow file for this run
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: Nginx_Deploy | |
on: workflow_dispatch | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Docker compouse DOWN old containers | |
run: docker compose -f docker-compose.nginx.yml down -v | |
- name: Docker compouse UP new containers | |
run: docker compose -f docker-compose.nginx.yml up -d --build | |
- name: Clean up old docker resources | |
run: | | |
docker container prune -f | |
docker image prune -f |