Commit 96650e2c authored by Matija Obreza's avatar Matija Obreza
Browse files

Update existing service on Sandbox

- Doesn't deploy separate swarm
parent a90c5e92
Pipeline #3529 failed with stages
in 3 minutes and 4 seconds
......@@ -173,21 +173,7 @@ deploy to sandbox:
- export DOCKER_CERT_PATH=${TLS_PATH}
- DOCKER_CMD=docker
# Actions
- apk add --no-cache gettext
- if [ "${CI_COMMIT_REF_SLUG}" = "master" ] ; then
export IMAGE_TAG="${IMAGE_VERSION}";
else
export IMAGE_TAG="${IMAGE_VERSION}-${CI_COMMIT_REF_SLUG}";
fi
- export CATALOG_API_URL=https://api.catalog.demo.genesys-pgr.org
- export CATALOG_SANDBOX_HOSTNAME=catalog.demo.genesys-pgr.org
- export CATALOG_FRONTEND_HOSTNAME=${CATALOG_SANDBOX_HOSTNAME}
- echo "Deploying ${CI_REGISTRY_IMAGE}:${IMAGE_TAG} for review as https\://${CATALOG_FRONTEND_HOSTNAME}"
- echo "Settings CLIENT_ID=${CATALOG_CLIENT_ID} CLIENT_SECRET=${CATALOG_CLIENT_SECRET}"
- envsubst < docker/review-compose-template.yml > review-composed.yml
- cat review-composed.yml
- ${DOCKER_CMD} stack rm catalogui-sandbox || true
- ${DOCKER_CMD} stack deploy -c review-composed.yml catalogui-sandbox
- ${DOCKER_CMD} service update --image ${CI_REGISTRY_IMAGE}:${IMAGE_VERSION} catalog-sandbox_frontend
environment:
name: sandbox
url: https://catalog.demo.genesys-pgr.org
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment