Browse Source

Update .gitlab-ci.yml

develop
Levin Faber 7 years ago
parent
commit
8a52ef5b54
  1. 21
      .gitlab-ci.yml

21
.gitlab-ci.yml

@ -2,19 +2,19 @@ stages:
- build_docker - build_docker
- build_frontend - build_frontend
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "${DEPLOY_ENV_KEY}")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build_frontend: build_frontend:
stage: build_frontend stage: build_frontend
tags: tags:
- docker - docker
image: registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-build image: registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-build
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "${DEPLOY_ENV_KEY}")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- cp -r Frontend/src/ /workdir/src/
- cp -r Frontend/public/ /workdir/public/
script: script:
- pwd - pwd
- ls -la - ls -la
@ -36,13 +36,6 @@ build_docker_host:
stage: build_docker stage: build_docker
tags: tags:
- docker-builder - docker-builder
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "${DEPLOY_ENV_KEY}")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script: script:
- docker build -f Docker/Dockerfile_FE_Host.dockerfile -t registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-serve . - docker build -f Docker/Dockerfile_FE_Host.dockerfile -t registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-serve .
- docker push registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-serve - docker push registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-serve

Loading…
Cancel
Save