From e55bbccc629b4964ac9ccf6a5f5036a0442b9b62 Mon Sep 17 00:00:00 2001 From: Manuel Kieweg <manuel.kieweg@h-da.de> Date: Wed, 14 Apr 2021 11:28:45 +0200 Subject: [PATCH] new nightly tags --- build/cd/deploy.go | 2 +- build/ci/.build-container.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/build/cd/deploy.go b/build/cd/deploy.go index be95a93af..7f61e2db0 100644 --- a/build/cd/deploy.go +++ b/build/cd/deploy.go @@ -285,7 +285,7 @@ func createDeployment(environment, hash string) *appv1.Deployment { VolumeSource: corev1.VolumeSource{ ConfigMap: &corev1.ConfigMapVolumeSource{ LocalObjectReference: corev1.LocalObjectReference{ - Name: "gosdn-develop-config", + Name: environment + "-config", }, }, }, diff --git a/build/ci/.build-container.yml b/build/ci/.build-container.yml index be0680d53..db5272edb 100644 --- a/build/ci/.build-container.yml +++ b/build/ci/.build-container.yml @@ -33,6 +33,21 @@ build:develop: - if: $CI_COMMIT_BRANCH == "develop" <<: *build +build:nightly:develop: + variables: + TAG: $CI_REGISTRY_IMAGE:nightly-develop + BUILDARGS: -race + rules: + - if: $CI_NIGHTLY == "develop" + <<: *build + +build:nightly: + variables: + TAG: $CI_REGISTRY_IMAGE:nightly + rules: + - if: $CI_NIGHTLY == "mainline" + <<: *build + build:merge-request: variables: TAG: $CI_REGISTRY_IMAGE:merge-request -- GitLab