-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
80 lines (71 loc) · 1.81 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
68
69
70
71
72
73
74
75
76
77
78
79
80
include: 'https://raw.githubusercontent.com/Nitrokey/common-ci-jobs/master/common_jobs.yml'
stages:
- pull-github
- build
- deploy
variables:
GIT_STRATEGY: clone
GIT_DEPTH: 0
GIT_SUBMODULE_STRATEGY: recursive
REPO_NAME: qubes-oem
MAIN_BRANCH: main
COMMON_PULL: "true"
COMMON_UPLOAD_NIGHTLY: "false"
COMMON_GITHUB_RELEASE: "false"
COMMON_UPLOAD_FILES: "false"
DEVICE_FOLDER: "nitropad"
UPLOAD_FOLDER: "qubes-oem"
.oem-build:
image: registry.git.nitrokey.com/nitrokey/gitlab-ci/ci-oem-release:latest
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
- if: '$CI_PIPELINE_SOURCE == "schedule"'
tags:
- docker
stage: build
after_script:
- wget $icon_server/checkmark/$CI_COMMIT_REF_NAME/$CI_COMMIT_SHA/$CI_JOB_NAME/$CI_JOB_STATUS/${CI_JOB_URL#*/*/*/}
artifacts:
paths:
- artifacts
expire_in: 1 hrs
oem-build-DE:
extends: .oem-build
script:
- ./make-image.sh de
- ls
- mkdir -p artifacts
- cp *oem*.img artifacts/
oem-build-DE-GPU:
extends: .oem-build
script:
- ./make-image.sh de gpu
- ls
- mkdir -p artifacts
- cp *oem*.img artifacts/
oem-build-EN-GPU:
extends: .oem-build
script:
- ./make-image.sh en gpu
- ls
- mkdir -p artifacts
- cp *oem*.img artifacts/
oem-build-EN:
extends: .oem-build
script:
- ./make-image.sh en
- ls
- mkdir -p artifacts
- cp *oem*.img artifacts/
#upload-oem-files:
# image: registry.git.nitrokey.com/nitrokey/gitlab-ci/ci-oem-release:latest
# rules:
# - if: '$CI_PIPELINE_SOURCE == "push"'
# tags:
# - docker
# stage: deploy
# script:
# - echo new_common
# - ./ci-scripts/qubes-oem-release.sh
# after_script:
# - wget $icon_server/checkmark/$CI_COMMIT_REF_NAME/$CI_COMMIT_SHA/$CI_JOB_NAME/$CI_JOB_STATUS/${CI_JOB_URL#*/*/*/}