mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 16:53:02 +00:00
Adding autodeploy for new 'beta' branch
This commit is contained in:
28
.github/workflows/autodeploy.yml
vendored
Normal file
28
.github/workflows/autodeploy.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# This is a basic deployment workflow triggered by pushes to the alpha branch.
|
||||||
|
|
||||||
|
name: Auto-Deploy 'beta' Branch to beta.coliolis.io
|
||||||
|
|
||||||
|
# Controls when the action will run. Workflow runs when the alpha branch receives a push event
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- beta
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
downloadcode:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
|
rm -Rf ./coriolis
|
||||||
|
rm -Rf ./coriolis-data
|
||||||
|
git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch beta
|
||||||
|
git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch beta
|
||||||
|
cd coriolis-data
|
||||||
|
npm install
|
||||||
|
cd ../coriolis
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
sudo -u www-data cp -r ./build/* /var/www/newdisk/beta.coriolis.io/
|
||||||
Reference in New Issue
Block a user