This repository was archived by the owner on Nov 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
64 lines (60 loc) · 1.4 KB
/
.gitlab-ci.yml
File metadata and controls
64 lines (60 loc) · 1.4 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
stages:
- test
- build
- upload
# Test compiler using JUnit testcases
test:
stage: test
image: "gradle:7.4.2-jdk17-alpine"
script:
- apk add --no-cache gcc libc-dev binutils
- cd compiler
- gradle test
tags:
- faust
- docker
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: kaniko-compose-builder --insecure-registry=faust.cs.fau.de:5000
only:
- master
- dockerci
tags:
- faust
- docker
make:
stage: build
image: "python:slim"
before_script:
- apt-get update
- apt-get -y install make
- pip install jinja2 markdown2
script: make dist_root
artifacts:
paths:
- metadata.yml
- dist_root/
only:
- master
tags:
- faust
- docker
upload_job:
stage: upload
script:
- ssh ci-upload@www.faust.cs.fau.de mkdir -p "/var/www/files/internal/ci/faustctf/2022/$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/2022/$CI_PROJECT_NAME/"
after_script:
- find "$CI_PROJECT_DIR" -mindepth 1 -delete
variables:
GIT_STRATEGY: none
only:
- master
- dockerci
tags:
- faust
- www-upload