Commit d60b1212 authored by Дмитрий Сафронов's avatar Дмитрий Сафронов
Browse files

Merge branch 'trunk' into 'master'

DOCKER_BUILDKIT: 0

See merge request tools/continuous-integration/infrastructure/deployment-sites!14
parents 4d18a767 c77b9532
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
# VARIABLES
variables:
  DOCKER_BUILDKIT: 1
  DOCKER_BUILDKIT: 0
  DOCKER_DRIVER: overlay2
  DOCKER_HOST: tcp://localhost:2375
  DOCKER_TLS_CERTDIR: ""
  GIT_DEPTH: 1

##########################################################################################################

@@ -15,8 +16,12 @@ stages:
##########################################################################################################

### COMMON SECTION
.common: &common
  image: registry.cyberbrain.pw/ansible/ansible
.common:
  image: $ANSIBLE_IMAGE
  variables:
    GIT_DEPTH: 1
    ANSIBLE_FORCE_COLOR: "True"
    ANSIBLE_HOST_KEY_CHECKING: "False"
  before_script:
    - eval $(ssh-agent -s); echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
    - mkdir -p ~/.ssh && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
@@ -26,12 +31,8 @@ stages:

### CHECK SECTION
check:
  <<: *common
  extends: common
  stage: check
  variables:
    GIT_DEPTH: 1
    ANSIBLE_FORCE_COLOR: "True"
    ANSIBLE_HOST_KEY_CHECKING: "False"
  only:
    refs:
      - trunk
@@ -44,12 +45,9 @@ check:

### DEPLOY SECTION
deploy:
  <<: *common
  extends: common
  stage: deploy
  variables:
    GIT_DEPTH: 1
    ANSIBLE_FORCE_COLOR: "True"
    ANSIBLE_HOST_KEY_CHECKING: "False"
    ANSIBLE_STDOUT_CALLBACK: "actionable"
  only:
    refs: