-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
51 lines (48 loc) · 1.16 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
41
42
43
44
45
46
47
48
49
50
51
stages:
- build
- upload
compose_build:
stage: build
# build and push all images from the docker-compose file
# when the faust.cs.fau.de:5000 registry gets https, the image can pulled from there
image: "thejonny/kaniko-compose-builder"
script: "cd src && kaniko-compose-builder --insecure-registry=faust.cs.fau.de:5000"
only:
- master
- dockerci
tags:
- faust
- docker
make:
stage: build
image: "debian:bullseye"
before_script:
- apt-get update
- apt-get -y install make
script: make install
artifacts:
paths:
- metadata.yml
- dist_root/
only:
- master
- dockerci
tags:
- faust
- docker
upload_job:
stage: upload
script:
- ssh ci-upload@www.faust.cs.fau.de mkdir -p "/var/www/files/internal/ci/faustctf/2021/$CI_PROJECT_NAME"
- tar -v -czp -H posix -f dist_root.tar.gz -C dist_root .
- scp metadata.yml dist_root.tar.gz "ci-upload@www.faust.cs.fau.de:/var/www/files/internal/ci/faustctf/2021/$CI_PROJECT_NAME/"
after_script:
- find "$CI_PROJECT_DIR" -mindepth 1 -delete
variables:
GIT_STRATEGY: none
only:
- master
- dockerci
tags:
- faust
- www-upload