docker-qemu-reactos/.gitlab-ci.yml

39 lines
868 B
YAML
Raw Normal View History

2019-02-20 22:10:38 +00:00
stages:
- "build:images"
- "push:images"
2019-02-20 22:10:38 +00:00
variables:
2019-09-15 08:22:49 +00:00
DOCKER_HOST: "tcp://dockerd:2376"
DOCKER_TLS_SAN: "DNS:dockerd"
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_DRIVER: "overlay2"
2019-02-20 22:10:38 +00:00
2019-09-15 08:22:49 +00:00
default:
image: "docker.io/docker:stable"
services:
- name: "docker.io/docker:dind"
alias: "dockerd"
build:images:native:
stage: "build:images"
2019-02-20 22:10:38 +00:00
before_script:
- "apk add --no-cache coreutils git make xz"
2019-02-20 22:10:38 +00:00
script:
2019-09-15 08:22:49 +00:00
- "make build-native-image save-native-image"
2019-02-20 22:10:38 +00:00
artifacts:
2019-09-15 08:22:49 +00:00
expire_in: "1 day"
2019-02-20 22:10:38 +00:00
paths:
2019-09-15 08:22:49 +00:00
- "./dist/"
2019-02-20 22:10:38 +00:00
2019-09-15 08:22:49 +00:00
push:images:native:
stage: "push:images"
2019-09-15 08:22:49 +00:00
dependencies:
- "build:images:native"
only:
- "/^v[0-9]+$/"
2019-02-20 22:10:38 +00:00
before_script:
- "apk add --no-cache coreutils git make xz"
2019-09-15 08:22:49 +00:00
- "docker login -u \"${CI_REGISTRY_USER:?}\" -p \"${CI_REGISTRY_PASSWORD:?}\" \"${CI_REGISTRY:?}\""
2019-02-20 22:10:38 +00:00
script:
- "make load-image push-image"