mirror of
https://github.com/hectorm/docker-qemu-reactos
synced 2025-01-09 10:36:37 +00:00
Updated GitLab CI
This commit is contained in:
parent
549e831abf
commit
11864d1c2b
@ -1,38 +1,38 @@
|
|||||||
image: "docker.io/docker:stable"
|
|
||||||
|
|
||||||
services:
|
|
||||||
- "docker:dind"
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- "build:images"
|
- "build:images"
|
||||||
- "push:images"
|
- "push:images"
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DOCKER_HOST: "tcp://docker:2375"
|
DOCKER_HOST: "tcp://dockerd:2376"
|
||||||
|
DOCKER_TLS_SAN: "DNS:dockerd"
|
||||||
|
DOCKER_TLS_CERTDIR: "/certs"
|
||||||
DOCKER_DRIVER: "overlay2"
|
DOCKER_DRIVER: "overlay2"
|
||||||
|
|
||||||
build:image:
|
default:
|
||||||
|
image: "docker.io/docker:stable"
|
||||||
|
services:
|
||||||
|
- name: "docker.io/docker:dind"
|
||||||
|
alias: "dockerd"
|
||||||
|
|
||||||
|
build:images:native:
|
||||||
stage: "build:images"
|
stage: "build:images"
|
||||||
before_script:
|
before_script:
|
||||||
- "docker info"
|
|
||||||
- "apk add --no-cache coreutils git make xz"
|
- "apk add --no-cache coreutils git make xz"
|
||||||
script:
|
script:
|
||||||
- "make build-image save-image"
|
- "make build-native-image save-native-image"
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: "1 hour"
|
expire_in: "1 day"
|
||||||
paths:
|
paths:
|
||||||
- "dist/"
|
- "./dist/"
|
||||||
|
|
||||||
push:image:
|
push:images:native:
|
||||||
stage: "push:images"
|
stage: "push:images"
|
||||||
|
dependencies:
|
||||||
|
- "build:images:native"
|
||||||
|
only:
|
||||||
|
- "/^v[0-9]+$/"
|
||||||
before_script:
|
before_script:
|
||||||
- "apk add --no-cache coreutils git make xz"
|
- "apk add --no-cache coreutils git make xz"
|
||||||
- "docker login -u \"${CI_REGISTRY_USER:?}\" -p \"${CI_REGISTRY_PASSWORD:?}\" \"${CI_REGISTRY:?}\" >/dev/null 2>&1"
|
- "docker login -u \"${CI_REGISTRY_USER:?}\" -p \"${CI_REGISTRY_PASSWORD:?}\" \"${CI_REGISTRY:?}\""
|
||||||
script:
|
script:
|
||||||
- "make load-image push-image"
|
- "make load-image push-image"
|
||||||
only:
|
|
||||||
- "/^v([0-9.]+)(-.+)?$/"
|
|
||||||
except:
|
|
||||||
- "branches"
|
|
||||||
dependencies:
|
|
||||||
- "build:image"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user