2019-10-22 21:42:41 +00:00
|
|
|
image: docker:latest
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
|
2019-10-22 21:36:22 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
.build_template: &build_definition
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- OS="${CI_JOB_NAME#*:}"
|
2019-10-22 21:58:54 +00:00
|
|
|
- apk add make
|
|
|
|
|
2019-10-22 23:39:54 +00:00
|
|
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
2019-10-22 21:36:22 +00:00
|
|
|
- make REGISTRY=${CI_REGISTRY_IMAGE} ${OS}
|
2019-10-22 22:16:38 +00:00
|
|
|
- make REGISTRY=${CI_REGISTRY_IMAGE} push${OS}
|
2019-10-22 21:36:22 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- dist/
|
|
|
|
|
2019-10-22 21:38:10 +00:00
|
|
|
amd64:amzn1:
|
2019-10-22 21:36:22 +00:00
|
|
|
<<: *build_definition
|
|
|
|
|
2019-10-22 21:38:10 +00:00
|
|
|
amd64:amzn2:
|
2019-10-22 21:36:22 +00:00
|
|
|
<<: *build_definition
|
|
|
|
|
|
|
|
amd64:centos7:
|
|
|
|
<<: *build_definition
|
|
|
|
|
2019-10-22 21:38:10 +00:00
|
|
|
amd64:opensuse-leap15.1:
|
2019-10-22 21:36:22 +00:00
|
|
|
<<: *build_definition
|
|
|
|
|
2019-10-22 21:38:10 +00:00
|
|
|
amd64:debian9:
|
2019-10-22 21:36:22 +00:00
|
|
|
<<: *build_definition
|
|
|
|
|
2019-10-22 21:38:10 +00:00
|
|
|
amd64:debian10:
|
2019-10-22 21:36:22 +00:00
|
|
|
<<: *build_definition
|
|
|
|
|
2019-10-22 21:38:10 +00:00
|
|
|
amd64:ubuntu16.04:
|
2019-10-22 21:36:22 +00:00
|
|
|
<<: *build_definition
|
|
|
|
|
2019-10-22 21:38:10 +00:00
|
|
|
amd64:ubuntu18.04:
|
2019-10-22 21:36:22 +00:00
|
|
|
<<: *build_definition
|