Update file .gitlab-ci.yml

This commit is contained in:
Lee 2023-01-13 23:08:04 +00:00
parent ad7b16fd9d
commit f7df051446

@ -15,10 +15,12 @@ docker-build:
only:
- main
deploy_staging:
deploy:
image: alpine:latest
stage: deploy
tags:
- deployment
script:
- echo "Deploy to staging server"
environment:
name: staging
url: https://staging-bs-overlay.fascinated.cc
- chmod og= $ID_RSA
- apk update && apk add openssh-client
- ssh -i $ID_RSA -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP "cd /home/overlay && docker compose pull && docker compose up -d"