cic-internal-integration/.gitlab-ci.yml

45 lines
962 B
YAML
Raw Normal View History

2021-08-06 01:28:10 +02:00
#include:
# - local: 'ci_templates/.cic-template.yml'
# - local: 'apps/contract-migration/.gitlab-ci.yml'
# - local: 'apps/cic-eth/.gitlab-ci.yml'
# - local: 'apps/cic-ussd/.gitlab-ci.yml'
# - local: 'apps/cic-notify/.gitlab-ci.yml'
# - local: 'apps/cic-meta/.gitlab-ci.yml'
# - local: 'apps/cic-cache/.gitlab-ci.yml'
# - local: 'apps/data-seeding/.gitlab-ci.yml'
image: tiangolo/docker-with-compose
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
2021-01-24 21:16:22 +01:00
stages:
- build
2021-08-06 01:28:10 +02:00
- deploy
2021-08-06 01:59:16 +02:00
variables:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
#services:
# - docker:stable-dind
2021-08-06 01:59:16 +02:00
2021-08-06 01:28:10 +02:00
build-prod:
2021-08-06 01:39:48 +02:00
tags:
- integration
2021-08-06 01:28:10 +02:00
stage: build
script:
2021-08-06 01:59:16 +02:00
- docker-compose build
2021-08-06 01:28:10 +02:00
only:
- bvander/integration-tests-on-docker
2021-08-06 01:42:23 +02:00
deploy-prod:
2021-08-06 01:39:48 +02:00
tags:
- integration
2021-08-06 01:28:10 +02:00
stage: deploy
script:
- docker stack deploy -c docker-compose.yml --with-registry-auth my-stack
only:
- bvander/integration-tests-on-docker