mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Compartmentalising the build stages in the workflows.
This commit is contained in:
15
.github/workflows/autodeploy.yml
vendored
15
.github/workflows/autodeploy.yml
vendored
@@ -22,12 +22,21 @@ jobs:
|
|||||||
rm -Rf ./coriolis-data
|
rm -Rf ./coriolis-data
|
||||||
git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch ${BRANCH_NAME}
|
git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch ${BRANCH_NAME}
|
||||||
git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch ${BRANCH_NAME}
|
git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch ${BRANCH_NAME}
|
||||||
|
|
||||||
|
buildcode:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
cd coriolis-data
|
cd coriolis-data
|
||||||
export NVM_DIR=~/.nvm
|
export NVM_DIR=~/.nvm
|
||||||
source ~/.nvm/nvm.sh
|
source ~/.nvm/nvm.sh
|
||||||
npm install
|
|
||||||
npm start
|
npm start
|
||||||
cd ../coriolis
|
cd ../coriolis
|
||||||
npm install
|
|
||||||
npm run build
|
npm run build
|
||||||
if [ ${BRANCH_NAME} == "beta" ]; then sudo -u www-data cp -r ./build/* /var/www/beta.coriolis.io/; else sudo -u www-data cp -r ./build/* /var/www/coriolis.io/; fi
|
movecode:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
|
if [ ${{ github.events.inputs.branch }} == "beta" ]; then sudo -u www-data cp -r ./build/* /var/www/beta.coriolis.io/; else sudo -u www-data cp -r ./build/* /var/www/coriolis.io/; fi
|
||||||
|
|||||||
12
.github/workflows/manualdeploy.yml
vendored
12
.github/workflows/manualdeploy.yml
vendored
@@ -27,12 +27,20 @@ jobs:
|
|||||||
rm -Rf ./coriolis-data
|
rm -Rf ./coriolis-data
|
||||||
git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch ${{ github.events.inputs.branch }}
|
git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch ${{ github.events.inputs.branch }}
|
||||||
git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch ${{ github.events.inputs.branch }}
|
git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch ${{ github.events.inputs.branch }}
|
||||||
|
buildcode:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
cd coriolis-data
|
cd coriolis-data
|
||||||
export NVM_DIR=~/.nvm
|
export NVM_DIR=~/.nvm
|
||||||
source ~/.nvm/nvm.sh
|
source ~/.nvm/nvm.sh
|
||||||
npm install
|
|
||||||
npm start
|
npm start
|
||||||
cd ../coriolis
|
cd ../coriolis
|
||||||
npm install
|
|
||||||
npm run build
|
npm run build
|
||||||
|
movecode:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
if [ ${{ github.events.inputs.branch }} == "beta" ]; then sudo -u www-data cp -r ./build/* /var/www/beta.coriolis.io/; else sudo -u www-data cp -r ./build/* /var/www/coriolis.io/; fi
|
if [ ${{ github.events.inputs.branch }} == "beta" ]; then sudo -u www-data cp -r ./build/* /var/www/beta.coriolis.io/; else sudo -u www-data cp -r ./build/* /var/www/coriolis.io/; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user