.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:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -20,11 +18,11 @@ jobs:
|
|||
echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config
|
||||
ssh -i ~/.ssh/deploy_key ubuntu@api.poweron.swiss "
|
||||
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 &&
|
||||
cp env-gateway-prod-forgejo.env .env &&
|
||||
rm -f env-*.env &&
|
||||
source .venv/bin/activate &&
|
||||
pip install -r requirements.txt --no-cache-dir &&
|
||||
sudo systemctl restart gateway
|
||||
"
|
||||
"
|
||||
Loading…
Reference in a new issue