moving the variable to deploy
This commit is contained in:
parent
4234dd058c
commit
01b383e7e6
1 changed files with 2 additions and 1 deletions
|
|
@ -178,7 +178,6 @@ build:staging:
|
|||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
VITE_MAPBOX_ACCESS_TOKEN: $MAPBOX_ACCESS_TOKEN
|
||||
services:
|
||||
- docker:20.10.21-dind
|
||||
only:
|
||||
|
|
@ -198,6 +197,7 @@ staging:deploy:
|
|||
DEPLOY_IMAGE: ${CI_REGISTRY}/brandx/bxt-app/production:staging
|
||||
DOCKER_HOST: ssh://deploy@staging.brandxtech.ca
|
||||
DEPLOY_TARGET: deploy@staging.brandxtech.ca
|
||||
VITE_MAPBOX_ACCESS_TOKEN: $MAPBOX_ACCESS_TOKEN
|
||||
only:
|
||||
- staging_environment
|
||||
environment:
|
||||
|
|
@ -207,6 +207,7 @@ staging:deploy:
|
|||
- "apk --update add openssh-client"
|
||||
- "eval $(ssh-agent -s)"
|
||||
- "echo \"$STAGING_SSH_PRIV_KEY\" | tr -d '\r' | ssh-add - "
|
||||
- "echo \"$MAPBOX_ACCESS_TOKEN\""
|
||||
# - "ssh -Mo StrictHostKeyChecking=no -S deploy-ctrl-socket -fnNTL /var/run/docker.sock:/var/run/docker.sock ${DEPLOY_TARGET}"
|
||||
# - "ssh -S deploy-ctrl-socket -O check ${DEPLOY_TARGET}"
|
||||
- mkdir -p ~/.ssh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue