-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.gitlab-ci.yml
55 lines (50 loc) · 1.24 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
variables:
GRUB_VERSION: '2.04'
DOCKER_REPOSITORY: mendersoftware/mender-convert-integration-scripts
S3_BUCKET_NAME: mender
include:
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-commits-signoffs.yml'
- project: 'Northern.tech/Mender/mendertesting'
file: '.gitlab-ci-check-license.yml'
stages:
- test
- build
- publish
build:uboot:
stage: build
image: docker
services:
- docker:19.03.5-dind
script:
- IMAGE_NAME=$DOCKER_REPOSITORY:pr ./docker-create-integration-binaries
artifacts:
expire_in: 2w
paths:
- output/*
build:grub-efi:
stage: build
image: docker
services:
- docker:19.03.5-dind
before_script:
- apk --update --no-cache add libc6-compat
script:
- (cd grub-efi && GRUB_VERSION=$GRUB_VERSION ./docker-create-grub-efi-binaries)
artifacts:
expire_in: 2w
paths:
- grub-efi/output/*
publish:s3:
stage: publish
image: debian:buster
dependencies:
- build:uboot
- build:grub-efi
before_script:
- apt update && apt install -yyq awscli
script:
- ./prepare-output-folder-for-upload
- aws s3 cp --recursive --acl public-read output/upload/ s3://$S3_BUCKET_NAME/mender-convert/
only:
- /^(master|[0-9]+\.[0-9]+\.x)$/