.gitlab-ci.yml 881 Bytes
Newer Older
Nane Kratzke's avatar
Nane Kratzke committed
1
2
image: alpine:3.12

Nane Kratzke's avatar
Nane Kratzke committed
3
stages:
Nane Kratzke's avatar
Nane Kratzke committed
4
5
  - build
  - test
Nane Kratzke's avatar
Nane Kratzke committed
6
  - deploy
Nane Kratzke's avatar
Nane Kratzke committed
7

Nane Kratzke's avatar
Nane Kratzke committed
8
buildjob1:
Nane Kratzke's avatar
Nane Kratzke committed
9
10
  stage: build
  script:
Nane Kratzke's avatar
Nane Kratzke committed
11
    - echo "This is job 1"
Nane Kratzke's avatar
Nane Kratzke committed
12
    - apk add util-linux
Nane Kratzke's avatar
Nane Kratzke committed
13
14
15
    - mkdir builds
    - touch builds/data.txt
    - echo $(hostname) > builds/data-$(uuidgen).txt
Nane Kratzke's avatar
Nane Kratzke committed
16
17
18
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
19

Nane Kratzke's avatar
Nane Kratzke committed
20
buildjob2:
Nane Kratzke's avatar
Nane Kratzke committed
21
  stage: build
Nane Kratzke's avatar
Nane Kratzke committed
22
  script:
Nane Kratzke's avatar
Nane Kratzke committed
23
    - echo "This is job 2"
Nane Kratzke's avatar
Nane Kratzke committed
24
    - apk add util-linux
Nane Kratzke's avatar
Nane Kratzke committed
25
26
    - mkdir builds
    - touch builds/data.txt
Nane Kratzke's avatar
Nane Kratzke committed
27
    - echo $(hostname) > builds/data-$(uuidgen).txt
Nane Kratzke's avatar
Nane Kratzke committed
28
29
30
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
31

Nane Kratzke's avatar
Nane Kratzke committed
32
buildjob3:
Nane Kratzke's avatar
Nane Kratzke committed
33
34
  stage: build
  script:
Nane Kratzke's avatar
Nane Kratzke committed
35
    - echo "This is job 3"
Nane Kratzke's avatar
Nane Kratzke committed
36
    - apk add util-linux
Nane Kratzke's avatar
Nane Kratzke committed
37
38
39
    - mkdir builds
    - touch builds/data.txt
    - echo $(hostname) > builds/data-$(uuidgen).txt
Nane Kratzke's avatar
Nane Kratzke committed
40
41
42
  artifacts:
    paths:
      - builds/
Nane Kratzke's avatar
Nane Kratzke committed
43

Nane Kratzke's avatar
Nane Kratzke committed
44
testjob1:
Nane Kratzke's avatar
Nane Kratzke committed
45
  stage: test
Nane Kratzke's avatar
Nane Kratzke committed
46
  script:
Nane Kratzke's avatar
Nane Kratzke committed
47
    - echo "This is test job 1"
Nane Kratzke's avatar
Nane Kratzke committed
48
49
    - mkdir results
    - touch results/files.txt
Nane Kratzke's avatar
Nane Kratzke committed
50
    - ls -la builds/*