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

39 lines
857 B
YAML
Raw Normal View History

2019-02-20 22:10:38 +00:00
stages:
2019-12-12 12:04:47 +00:00
- 'build:images'
- 'push:images'
2019-02-20 22:10:38 +00:00
variables:
2019-12-12 12:04:47 +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:
2019-12-12 12:04:47 +00:00
image: 'docker.io/docker:stable'
2019-09-15 08:22:49 +00:00
services:
2019-12-12 12:04:47 +00:00
- name: 'docker.io/docker:dind'
alias: 'dockerd'
2019-09-15 08:22:49 +00:00
2019-09-15 08:40:22 +00:00
build:images:
2019-12-12 12:04:47 +00:00
stage: 'build:images'
2019-02-20 22:10:38 +00:00
before_script:
- 'apk add --no-cache coreutils git make zstd'
2019-02-20 22:10:38 +00:00
script:
2020-05-22 16:52:24 +00:00
- 'make IMAGE_BUILD_OPTS="--pull" build-image save-image'
2019-02-20 22:10:38 +00:00
artifacts:
2019-12-12 12:04:47 +00:00
expire_in: '1 day'
2019-02-20 22:10:38 +00:00
paths:
2019-12-12 12:04:47 +00:00
- './dist/'
2019-02-20 22:10:38 +00:00
2019-09-15 08:40:22 +00:00
push:images:
2019-12-12 12:04:47 +00:00
stage: 'push:images'
2019-09-15 08:22:49 +00:00
dependencies:
2019-12-12 12:04:47 +00:00
- 'build:images'
2019-09-15 08:22:49 +00:00
only:
2019-12-12 12:04:47 +00:00
- '/^v[0-9]+$/'
2019-02-20 22:10:38 +00:00
before_script:
- 'apk add --no-cache coreutils git make zstd'
2019-12-12 12:04:47 +00:00
- 'docker login -u "${CI_REGISTRY_USER:?}" -p "${CI_REGISTRY_PASSWORD:?}" "${CI_REGISTRY:?}"'
2019-02-20 22:10:38 +00:00
script:
2019-12-12 12:04:47 +00:00
- 'make load-image push-image'