Docker Prod #76
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: Docker Prod | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create env file | |
run: | | |
touch .env | |
echo DOMAIN=${{ secrets.DOMAIN }} >> .env | |
cat .env | |
- name: Docker run | |
run: docker compose up -d --force-recreate --build |