mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-24 09:51:54 +00:00
bird: file .yml was modified. Beta still doesn't work
This commit is contained in:
parent
7c4270b8fd
commit
19e8a4fd5f
130
.gitlab-ci.yml
130
.gitlab-ci.yml
@ -1,9 +1,9 @@
|
|||||||
variables:
|
variables:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
LC_ALL: C
|
LC_ALL: C
|
||||||
GIT_STRATEGY: fetch
|
GIT_STRATEGY: fetch
|
||||||
DOCKER_CMD: docker --config="$HOME/.docker/$CI_JOB_ID/"
|
DOCKER_CMD: docker --config="$HOME/.docker/$CI_JOB_ID/"
|
||||||
IMG_BASE: registry.labs.nic.cz/labs/bird
|
IMG_BASE: registry.labs.nic.cz/labs/bird
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- image
|
- image
|
||||||
@ -12,75 +12,75 @@ stages:
|
|||||||
- runtest
|
- runtest
|
||||||
- cleanup
|
- cleanup
|
||||||
|
|
||||||
.docker: &docker_build
|
.docker: &docker_build
|
||||||
stage: image
|
stage: image
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- $DOCKER_CMD login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.labs.nic.cz
|
- $DOCKER_CMD login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.labs.nic.cz
|
||||||
# Make sure we refresh the base image if it updates (eg. security updates, etc)
|
# Make sure we refresh the base image if it updates (eg. security updates, etc)
|
||||||
# If we do just the build, cache is always reused and the freshness of the
|
# If we do just the build, cache is always reused and the freshness of the
|
||||||
# base image is never checked. However, pull always asks and updates the
|
# base image is never checked. However, pull always asks and updates the
|
||||||
# image only if it changed ‒ therefore, the cache is used unless there's a
|
# image only if it changed ‒ therefore, the cache is used unless there's a
|
||||||
# change.
|
# change.
|
||||||
- $DOCKER_CMD pull `sed -ne 's/^FROM //p' "misc/docker/$IMG_NAME/Dockerfile"`
|
- $DOCKER_CMD pull `sed -ne 's/^FROM //p' "misc/docker/$IMG_NAME/Dockerfile"`
|
||||||
- $DOCKER_CMD build -t "bird:$IMG_NAME" "misc/docker/$IMG_NAME"
|
- $DOCKER_CMD build -t "bird:$IMG_NAME" "misc/docker/$IMG_NAME"
|
||||||
- $DOCKER_CMD tag "bird:$IMG_NAME" "$IMG_BASE:$IMG_NAME"
|
- $DOCKER_CMD tag "bird:$IMG_NAME" "$IMG_BASE:$IMG_NAME"
|
||||||
- $DOCKER_CMD push "$IMG_BASE:$IMG_NAME"
|
- $DOCKER_CMD push "$IMG_BASE:$IMG_NAME"
|
||||||
after_script:
|
after_script:
|
||||||
- rm -f "$HOME/.docker/$CI_JOB_ID/" # cleanup the credentials
|
- rm -f "$HOME/.docker/$CI_JOB_ID/" # cleanup the credentials
|
||||||
tags:
|
tags:
|
||||||
# That's Docker in Docker
|
# That's Docker in Docker
|
||||||
- dind
|
- dind
|
||||||
|
|
||||||
docker_debian-7-amd64:
|
docker_debian-7-amd64:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "debian-7-amd64"
|
IMG_NAME: "debian-7-amd64"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_debian-8-amd64:
|
docker_debian-8-amd64:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "debian-8-amd64"
|
IMG_NAME: "debian-8-amd64"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_debian-9-amd64:
|
docker_debian-9-amd64:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "debian-9-amd64"
|
IMG_NAME: "debian-9-amd64"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_debian-testing-amd64:
|
docker_debian-testing-amd64:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "debian-testing-amd64"
|
IMG_NAME: "debian-testing-amd64"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_debian-7-i386:
|
docker_debian-7-i386:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "debian-7-i386"
|
IMG_NAME: "debian-7-i386"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_debian-8-i386:
|
docker_debian-8-i386:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "debian-8-i386"
|
IMG_NAME: "debian-8-i386"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_debian-9-i386:
|
docker_debian-9-i386:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "debian-9-i386"
|
IMG_NAME: "debian-9-i386"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_debian-testing-i386:
|
docker_debian-testing-i386:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "debian-testing-i386"
|
IMG_NAME: "debian-testing-i386"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_fedora-25-amd64:
|
docker_fedora-25-amd64:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "fedora-25-amd64"
|
IMG_NAME: "fedora-25-amd64"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_fedora-26-amd64:
|
docker_fedora-26-amd64:
|
||||||
variables:
|
variables:
|
||||||
IMG_NAME: "fedora-26-amd64"
|
IMG_NAME: "fedora-26-amd64"
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
|
|
||||||
docker_centos-7-amd64:
|
docker_centos-7-amd64:
|
||||||
variables:
|
variables:
|
||||||
@ -301,6 +301,8 @@ build-birdlab:
|
|||||||
- birdlab
|
- birdlab
|
||||||
- amd64
|
- amd64
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
netlab:
|
netlab:
|
||||||
stage: netlab_prep
|
stage: netlab_prep
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user