mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-10-03 07:17:04 -05:00
Test
This commit is contained in:
36
.github/workflows/test.yml
vendored
Normal file
36
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Deploy Test Build
|
||||
|
||||
on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: 🎉 Deploy devlopment build to dev.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/live/ && docker compose down
|
||||
|
||||
- name: Synchronize to app directory
|
||||
run: |
|
||||
rsync -av --delete \
|
||||
--exclude ".env" \
|
||||
--exclude "storage/" \
|
||||
--exclude "node_modules/" \
|
||||
--exclude "vendor/" \
|
||||
./ /home/gh-action/live/app/
|
||||
|
||||
- name: Build and run docker container
|
||||
run: cd /home/gh-action/live/ && docker compose up --build -d
|
||||
|
||||
Reference in New Issue
Block a user