forked from docker/machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (40 loc) · 883 Bytes
/
.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
image: docker
stages:
- validate
- build
services:
- docker:dind
variables:
USE_CONTAINER: "true"
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay
before_script:
- apk add -U make bash
.build_base: &build_base
stage: build
before_script:
- apk add -U make bash
- export TARGET_OS=$(echo $CI_JOB_NAME | cut -d ' ' -f 1)
- export TARGET_ARCH=$(echo $CI_JOB_NAME | cut -d ' ' -f 2)
after_script:
- "[[ \"$(find bin -type f -name docker-machine*)\" != \"\" ]]"
artifacts:
paths:
- bin/
expire_in: 1 week
tags:
- docker
- privileged
.build_validate: &build_validate
<<: *build_base
stage: validate
script: make build validate
.build_x: &build_x
<<: *build_base
script: make build-x
darwin amd64: *build_x
linux amd64: *build_validate
openbsd amd64: *build_x
windows amd64: *build_x
linux arm: *build_x
linux arm64: *build_x