Update file .gitlab-ci.yml
This commit is contained in:
parent
ad7b16fd9d
commit
f7df051446
@ -15,10 +15,12 @@ docker-build:
|
|||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
deploy_staging:
|
deploy:
|
||||||
|
image: alpine:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
tags:
|
||||||
|
- deployment
|
||||||
script:
|
script:
|
||||||
- echo "Deploy to staging server"
|
- chmod og= $ID_RSA
|
||||||
environment:
|
- apk update && apk add openssh-client
|
||||||
name: staging
|
- ssh -i $ID_RSA -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP "cd /home/overlay && docker compose pull && docker compose up -d"
|
||||||
url: https://staging-bs-overlay.fascinated.cc
|
|
||||||
|
Reference in New Issue
Block a user