Browse Source

docker

merge-requests/8/head
Steven Foerster 6 years ago
parent
commit
468ca11d8c
  1. 26
      .gitlab-ci.yml

26
.gitlab-ci.yml

@ -1,4 +1,4 @@
image: ubuntu:18.04 image: docker:latest
services: services:
- docker:dind - docker:dind
@ -7,35 +7,17 @@ variables:
GIT_SUBMODULE_STRATEGY: "recursive" GIT_SUBMODULE_STRATEGY: "recursive"
MISTBORN_DEFAULT_PASSWORD: "default_password" MISTBORN_DEFAULT_PASSWORD: "default_password"
before_script:
#- apk add docker-compose
- apt-get update
- apt-get install -y sudo
- scripts/subinstallers/docker.sh
- scripts/subinstallers/gen_prod_env.sh "$MISTBORN_DEFAULT_PASSWORD"
- cp compose/production/traefik/traefik.toml.template compose/production/traefik/traefik.toml
stages: stages:
- test - test
#include: #include:
# - template: Code-Quality.gitlab-ci.yml # - template: Code-Quality.gitlab-ci.yml
#install:
# stage: test
# image: ubuntu:18.04
# variables:
# MISTBORN_TEST_SKIP_IPTABLES: "true"
# before_script:
# - apt-get update
# - apt-get install -y sudo git
# script:
# - echo "MISTBORN_TEST_SKIP_IPTABLES:"
# - echo $MISTBORN_TEST_SKIP_IPTABLES
# - scripts/install.sh
docker_build: docker_build:
stage: test stage: test
script: script:
- apk add docker-compose
- scripts/subinstallers/gen_prod_env.sh "$MISTBORN_DEFAULT_PASSWORD"
- cp compose/production/traefik/traefik.toml.template compose/production/traefik/traefik.toml
- docker-compose -f base.yml build - docker-compose -f base.yml build

Loading…
Cancel
Save