using bxt-app registry instead of frontend

This commit is contained in:
Carter 2024-10-09 15:11:23 -06:00
parent f9c80f9a12
commit 23f834ccdb

View file

@ -69,9 +69,9 @@ build:production:
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
script:
- docker build -t ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} .
- docker tag ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/frontend/production:latest
- docker push ${CI_REGISTRY}/brandx/frontend/production
- docker build -t ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} .
- docker tag ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/bxt-app/production:latest
- docker push ${CI_REGISTRY}/brandx/bxt-app/production
deploy:production:
image: docker:20.10.21
@ -79,7 +79,7 @@ deploy:production:
variables:
DOCKER_DRIVER: overlay2
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
only:
- master
@ -155,7 +155,7 @@ build:base:
- dependencies:staging
variables:
DOCKER_DRIVER: overlay2
PROJECT: brandx/frontend
PROJECT: brandx/bxt-app
DOCKER_TLS_CERTDIR: ""
services:
- docker:20.10.21-dind
@ -185,16 +185,16 @@ build:staging:
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
script:
- docker build -t ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} .
- docker tag ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/frontend/production:staging
- docker push ${CI_REGISTRY}/brandx/frontend/production:staging
- docker build -t ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} .
- docker tag ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/bxt-app/production:staging
- docker push ${CI_REGISTRY}/brandx/bxt-app/production:staging
staging:deploy:
image: docker:20.10.21
stage: staging
variables:
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
DEPLOY_TARGET: deploy@staging.brandxtech.ca
only:
@ -279,16 +279,16 @@ build:development:
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
script:
- docker build -t ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} .
- docker tag ${CI_REGISTRY}/brandx/frontend/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/frontend/production:development
- docker push ${CI_REGISTRY}/brandx/frontend/production:development
- docker build -t ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} .
- docker tag ${CI_REGISTRY}/brandx/bxt-app/production:${CI_COMMIT_SHA} ${CI_REGISTRY}/brandx/bxt-app/production:development
- docker push ${CI_REGISTRY}/brandx/bxt-app/production:development
deploy:development:
image: docker:20.10.21
stage: deploy
variables:
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
DEPLOY_TARGET: deploy@bxt-dev.adaptiveagriculture.ca
only: