-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
40 lines (32 loc) · 1.08 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
image: python:3.8
stages:
- build
- deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
FOLDER: ./
builds:
image: docker:19.03
stage: build
services:
- docker:dind
tags:
- docker-in-docker
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
CI_PROJECT_PATH: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
script:
- cd $FOLDER
# - export DOCKERTAGNAME=$(echo "$CI_JOB_NAME" | cut -d":" -f2)
# - export CI_PROJECT_PATH=$CI_PROJECT_PATH/$DOCKERTAGNAME
# - export CI_IMAGE_LATEST=$CI_PROJECT_PATH:latest
# - export CI_IMAGE_SHA=$CI_PROJECT_PATH:$CI_COMMIT_BRANCH
# - docker info
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# - docker pull $CI_COMMIT_BRANCH || true
# - echo $CI_IMAGE_SHA
# - echo $CI_IMAGE_LATEST
# - docker build --cache-from zivgitlab.wwu.io/scdh/intf/ntg/builds:latest --tag zivgitlab.wwu.io/scdh/intf/ntg/builds:latest --tag zivgitlab.wwu.io/scdh/intf/ntg/builds:master .
# - docker push $CI_IMAGE_SHA
# - docker push $CI_IMAGE_LATEST