Skip to content
Snippets Groups Projects
Commit 0e90a4e7 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

introduce GITLAB_HOST

parent 7b07b616
No related branches found
No related tags found
No related merge requests found
Pipeline #101247 passed
......@@ -18,8 +18,8 @@ docker-build:
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" atdb
- docker push "$CI_REGISTRY_IMAGE"
only:
- branches@origin
rules:
- if: '$GITLAB_HOST == "git.astron.nl"'
test-code:
image: python:3.10
......@@ -37,8 +37,8 @@ test-code:
- pip install -r requirements/dev.txt
- python manage.py migrate --settings atdb.settings.test_ci
- python manage.py test --settings atdb.settings.test_ci
only:
- branches@origin
rules:
- if: '$GITLAB_HOST == "git.astron.nl"'
# deploy to 'sdc-dev.astron.nl'
docker-deploy-to-test:
......@@ -60,8 +60,7 @@ docker-deploy-to-test:
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p atdb -f /docker_compose/atdb-ldv/docker-compose-dev-cd.yml up -d"
when: manual
# only:
# - master
# deploy to 'sdc.astron.nl'
docker-deploy-to-production:
......@@ -83,5 +82,5 @@ docker-deploy-to-production:
- ssh -o StrictHostKeyChecking=no sdco@dop821.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
- ssh -o StrictHostKeyChecking=no sdco@dop821.astron.nl "docker-compose -p atdb -f /opt/dockercompose/atdb-ldv-compose/docker-compose-production-cd.yml up -d"
when: manual
only:
- branches@origin
\ No newline at end of file
rules:
- if: '$GITLAB_HOST == "git.astron.nl"'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment