Deploy Live Build #32
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 playtester build | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: 🎉 Deploy devlopment build to playtest.playdeathgarden.live | |
runs-on: self-hosted | |
environment: Dev | |
defaults: | |
run: | |
working-directory: ./dist | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Shutdown the application | |
run: cd /home/gh-action/dev/ && docker compose down | |
- name: Synchronize to app directory | |
run: | | |
rsync -av --delete \ | |
--exclude ".env" \ | |
--exclude "storage/" \ | |
--exclude "node_modules/" \ | |
--exclude "vendor/" \ | |
./ /home/gh-action/dev/app/ | |
- name: Build and run docker container | |
run: cd /home/gh-action/dev/ && docker compose up --build -d | |