Commit f534d64f authored by Laury Bueno's avatar Laury Bueno
Browse files

[CI] Minor updates to test builds

parent 1293c784
......@@ -66,10 +66,10 @@ build to homolog:
# test to homolog:
# stage: test
# script:
# - docker build -f compose/dev/django/Dockerfile -t $DJANGO_RELEASE_IMAGE .
# - docker build -f compose/test/django/Dockerfile -t $DJANGO_RELEASE_IMAGE .
# - docker tag $DJANGO_RELEASE_IMAGE "$CI_REGISTRY_IMAGE/django:test"
# - docker run -d --env-file=./compose/dev/test_env --name=postgres postgres:9.6
# - docker run --env-file=./compose/dev/test_env --link=postgres:postgres "$CI_REGISTRY_IMAGE/django:test" /test.sh
# - docker run -d --env-file=./compose/test/test_env --name=postgres postgres:9.6
# - docker run --env-file=./compose/test/test_env --link=postgres:postgres "$CI_REGISTRY_IMAGE/django:test" /test.sh
# only:
# - /master/
# environment: homolog
......@@ -94,7 +94,7 @@ build to develop:
stage: build
script:
- docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
- docker build -f compose/dev/django/Dockerfile -t $DJANGO_RELEASE_IMAGE .
- docker build -f compose/test/django/Dockerfile -t $DJANGO_RELEASE_IMAGE .
- docker tag $DJANGO_RELEASE_IMAGE "$CI_REGISTRY_IMAGE/django:develop"
- docker push "$CI_REGISTRY_IMAGE/django:develop"
only:
......@@ -106,8 +106,8 @@ build to develop:
# test to develop:
# stage: test
# script:
# - docker run -d --env-file=./compose/dev/test_env --name=postgres postgres:9.6
# - docker run --env-file=./compose/dev/test_env --link=postgres:postgres "$CI_REGISTRY_IMAGE/django:develop" /test.sh
# - docker run -d --env-file=./compose/test/test_env --name=postgres postgres:9.6
# - docker run --env-file=./compose/test/test_env --link=postgres:postgres "$CI_REGISTRY_IMAGE/django:develop" /test.sh
# only:
# - /develop/
# environment: development
......
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