Skip to content
Snippets Groups Projects
Commit fbd20e1a authored by André Sterba's avatar André Sterba
Browse files

Some CI fixes 2

parent dc55b975
No related branches found
No related tags found
1 merge request!253Migration in monorepo
Pipeline #97900 failed
This commit is part of merge request !253. Comments created here will be created in the context of that merge request.
variables:
GOSDN_IMAGE: "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}"
GOSDN_TESTING_IMAGE: "${CI_REGISTRY_IMAGE}:testing_${CI_COMMIT_SHA}"
CEOS_IMAGE: "$CI_REGISTRY_IMAGE/ceos:latest"
GOLANG_VERSION: "1.18"
GOSDN_IMAGE: "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}"
GOSDN_TESTING_IMAGE: "${CI_REGISTRY_IMAGE}:testing_${CI_COMMIT_SHA}"
CEOS_IMAGE: "$CI_REGISTRY_IMAGE/ceos:latest"
GOLANG_VERSION: "1.18"
stages:
- build
- test
- analyze
- apply
- integration-test
- build-release
- .post
- build
- test
- analyze
- apply
- integration-test
- build-release
- .post
include:
- local: '/.gitlab/ci/.build-container.yml'
- local: '/.gitlab/ci/.code-quality-ci.yml'
- local: '/.gitlab/ci/.security-and-compliance-ci.yml'
- local: '/.gitlab/ci/.test.yml'
- local: '/.gitlab/ci/.containerlab-ci.yml'
- local: '/.gitlab/ci/.integration-test.yml'
- local: '/.gitlab/ci/.uml-autogen-ci.yml'
- local: '/.gitlab/ci/.build-release.yml'
- local: "/.gitlab/ci/.build-container.yml"
- local: "/.gitlab/ci/.code-quality-ci.yml"
- local: "/.gitlab/ci/.security-and-compliance-ci.yml"
- local: "/.gitlab/ci/.test.yml"
- local: "/.gitlab/ci/.containerlab-ci.yml"
- local: "/.gitlab/ci/.integration-test.yml"
- local: "/.gitlab/ci/.uml-autogen-ci.yml"
- local: "/.gitlab/ci/.build-release.yml"
......@@ -7,6 +7,7 @@
TAG: $CI_COMMIT_BRANCH
before_script:
# replace all slashes in the tag with hyphen, because slashes are not allowed in tags
- cd controller/
- TAG=${TAG//\//-}
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"},\"$CI_DEPENDENCY_PROXY_SERVER\":{\"username\":\"$CI_DEPENDENCY_PROXY_USER\",\"password\":\"$CI_DEPENDENCY_PROXY_TOKEN\"}}}" > /kaniko/.docker/config.json
......@@ -23,7 +24,6 @@ build-testing-image:
BUILDARGS: -race
- when: always
script:
- cd controller/
- /kaniko/executor
--cache=true
--context "$CI_PROJECT_DIR"
......@@ -48,7 +48,6 @@ build-image:
BUILDARGS: -race
- when: always
script:
- cd controller/
- /kaniko/executor
--cache=true
--context "$CI_PROJECT_DIR"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment