feat(astrapia): add layer UI #78
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: Continuous Deployment to Mordor | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy_to_mordor: | |
runs-on: [ self-hosted, mordor-label ] | |
steps: | |
- name: Stop Docker Compose Services | |
continue-on-error: true | |
run: | | |
cd ~/netanol/Docker && docker compose down | |
- name: Remove Old Files | |
continue-on-error: true | |
run: | | |
rm -rf ~/Netanol | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Copy Code | |
run: | | |
mkdir ~/Netanol && cp -r . ~/Netanol | |
- name: Copy Override | |
continue-on-error: true | |
run: | | |
cd ~/Netanol/Docker && | |
cp mordor/appsettings.Override.json ~/Netanol/Packrat/Fennec/ | |
- name: Run Remote Docker | |
run: | | |
cd ~/Netanol/Docker && | |
docker compose build --no-cache && | |
docker system prune -f && | |
docker compose --profile prod --env-file .env --env-file mordor/docker.env up -d |