.forgejo/workflows/deploy.yml aktualisiert
All checks were successful
Deploy Plattform-Core / deploy (push) Successful in 11s
All checks were successful
Deploy Plattform-Core / deploy (push) Successful in 11s
This commit is contained in:
parent
a31e0dadc3
commit
26505ba7af
1 changed files with 3 additions and 5 deletions
|
|
@ -1,10 +1,8 @@
|
||||||
name: Deploy Gateway
|
name: Deploy Plattform-Core
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -20,11 +18,11 @@ jobs:
|
||||||
echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config
|
echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config
|
||||||
ssh -i ~/.ssh/deploy_key ubuntu@api.poweron.swiss "
|
ssh -i ~/.ssh/deploy_key ubuntu@api.poweron.swiss "
|
||||||
cd /srv/gateway/current &&
|
cd /srv/gateway/current &&
|
||||||
git remote set-url origin ssh://git@git.poweron.swiss:2222/PowerOn/gateway.git &&
|
git remote set-url origin ssh://git@git.poweron.swiss:2222/PowerOn/plattform-core.git &&
|
||||||
git pull &&
|
git pull &&
|
||||||
cp env-gateway-prod-forgejo.env .env &&
|
cp env-gateway-prod-forgejo.env .env &&
|
||||||
rm -f env-*.env &&
|
rm -f env-*.env &&
|
||||||
source .venv/bin/activate &&
|
source .venv/bin/activate &&
|
||||||
pip install -r requirements.txt --no-cache-dir &&
|
pip install -r requirements.txt --no-cache-dir &&
|
||||||
sudo systemctl restart gateway
|
sudo systemctl restart gateway
|
||||||
"
|
"
|
||||||
Loading…
Reference in a new issue