forked from osbuild/images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
67 lines (61 loc) · 1.34 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
stages:
- init
- gen
- test
- finish
.base:
before_script:
- mkdir -p /tmp/artifacts
- schutzbot/ci_details.sh > /tmp/artifacts/ci-details-before-run.txt
- cat schutzbot/team_ssh_keys.txt | tee -a ~/.ssh/authorized_keys > /dev/null
after_script:
- schutzbot/ci_details.sh > /tmp/artifacts/ci-details-after-run.txt || true
- schutzbot/update_github_status.sh update || true
- schutzbot/save_journal.sh || true
- schutzbot/upload_artifacts.sh
interruptible: true
retry: 1
tags:
- terraform
artifacts:
paths:
- "*.repo"
- COMPOSER_NVR
when: always
.terraform:
extends: .base
tags:
- terraform
init:
stage: init
interruptible: true
tags:
- shell
script:
- schutzbot/update_github_status.sh start
generate-build-config:
stage: gen
extends: .terraform
variables:
RUNNER: aws/fedora-38-x86_64
INTERNAL_NETWORK: "true"
script:
- sudo dnf -y install go python3 gpgme-devel s3cmd
- ./test/cases/generate-build-config build-config.yml
artifacts:
paths:
- build-config.yml
image-build-trigger:
stage: test
trigger:
include:
- artifact: build-config.yml
job: generate-build-config
strategy: depend
finish:
stage: finish
dependencies: []
tags:
- shell
script:
- schutzbot/update_github_status.sh finish