diff --git a/build/cd/deploy.go b/build/cd/deploy.go index be95a93af44c2745797a7650156223fb5831052b..7f61e2db03aa957787167eb5112399771b6b33d9 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 be0680d53a3ff24fa3600f1473968dfad70fb489..db5272edb5648ba3334cbe4f29e73edcdb7cc7da 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