using bxt-app registry instead of frontend
This commit is contained in:
parent
f9c80f9a12
commit
23f834ccdb
1 changed files with 13 additions and 13 deletions
|
|
@ -69,9 +69,9 @@ build:production:
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
|
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
|
||||||
script:
|
script:
|
||||||
- docker build -t ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} .
|
- docker build -t ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} .
|
||||||
- docker tag ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/frontend/production:latest
|
- docker tag ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/bxt-app/production:latest
|
||||||
- docker push ${CI_REGISTRY}/brandx/frontend/production
|
- docker push ${CI_REGISTRY}/brandx/bxt-app/production
|
||||||
|
|
||||||
deploy:production:
|
deploy:production:
|
||||||
image: docker:20.10.21
|
image: docker:20.10.21
|
||||||
|
|
@ -79,7 +79,7 @@ deploy:production:
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
DOCKER_HOST: ssh://deploy@bxt-prod01.brandxtech.ca
|
DOCKER_HOST: ssh://deploy@bxt-prod01.brandxtech.ca
|
||||||
DEPLOY_IMAGE: ${CI_REGISTRY}/brandx/frontend/production:latest
|
DEPLOY_IMAGE: ${CI_REGISTRY}/brandx/bxt-app/production:latest
|
||||||
DEPLOY_TARGET: deploy@bxt-prod01.brandxtech.ca
|
DEPLOY_TARGET: deploy@bxt-prod01.brandxtech.ca
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
@ -155,7 +155,7 @@ build:base:
|
||||||
- dependencies:staging
|
- dependencies:staging
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
PROJECT: brandx/frontend
|
PROJECT: brandx/bxt-app
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
services:
|
services:
|
||||||
- docker:20.10.21-dind
|
- docker:20.10.21-dind
|
||||||
|
|
@ -185,16 +185,16 @@ build:staging:
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
|
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
|
||||||
script:
|
script:
|
||||||
- docker build -t ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} .
|
- docker build -t ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} .
|
||||||
- docker tag ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/frontend/production:staging
|
- docker tag ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/bxt-app/production:staging
|
||||||
- docker push ${CI_REGISTRY}/brandx/frontend/production:staging
|
- docker push ${CI_REGISTRY}/brandx/bxt-app/production:staging
|
||||||
|
|
||||||
staging:deploy:
|
staging:deploy:
|
||||||
image: docker:20.10.21
|
image: docker:20.10.21
|
||||||
stage: staging
|
stage: staging
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
DEPLOY_IMAGE: ${CI_REGISTRY}/brandx/frontend/production:staging
|
DEPLOY_IMAGE: ${CI_REGISTRY}/brandx/bxt-app/production:staging
|
||||||
DOCKER_HOST: ssh://deploy@staging.brandxtech.ca
|
DOCKER_HOST: ssh://deploy@staging.brandxtech.ca
|
||||||
DEPLOY_TARGET: deploy@staging.brandxtech.ca
|
DEPLOY_TARGET: deploy@staging.brandxtech.ca
|
||||||
only:
|
only:
|
||||||
|
|
@ -279,16 +279,16 @@ build:development:
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
|
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
|
||||||
script:
|
script:
|
||||||
- docker build -t ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} .
|
- docker build -t ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} .
|
||||||
- docker tag ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/frontend/production:development
|
- docker tag ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/bxt-app/production:development
|
||||||
- docker push ${CI_REGISTRY}/brandx/frontend/production:development
|
- docker push ${CI_REGISTRY}/brandx/bxt-app/production:development
|
||||||
|
|
||||||
deploy:development:
|
deploy:development:
|
||||||
image: docker:20.10.21
|
image: docker:20.10.21
|
||||||
stage: deploy
|
stage: deploy
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
DEPLOY_IMAGE: ${CI_REGISTRY}/brandx/frontend/production:development
|
DEPLOY_IMAGE: ${CI_REGISTRY}/brandx/bxt-app/production:development
|
||||||
DOCKER_HOST: ssh://deploy@bxt-dev.adaptiveagriculture.ca
|
DOCKER_HOST: ssh://deploy@bxt-dev.adaptiveagriculture.ca
|
||||||
DEPLOY_TARGET: deploy@bxt-dev.adaptiveagriculture.ca
|
DEPLOY_TARGET: deploy@bxt-dev.adaptiveagriculture.ca
|
||||||
only:
|
only:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue