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: variables:
GOSDN_IMAGE: "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}" GOSDN_IMAGE: "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}"
GOSDN_TESTING_IMAGE: "${CI_REGISTRY_IMAGE}:testing_${CI_COMMIT_SHA}" GOSDN_TESTING_IMAGE: "${CI_REGISTRY_IMAGE}:testing_${CI_COMMIT_SHA}"
CEOS_IMAGE: "$CI_REGISTRY_IMAGE/ceos:latest" CEOS_IMAGE: "$CI_REGISTRY_IMAGE/ceos:latest"
GOLANG_VERSION: "1.18" GOLANG_VERSION: "1.18"
stages: stages:
- build - build
- test - test
- analyze - analyze
- apply - apply
- integration-test - integration-test
- build-release - build-release
- .post - .post
include: include:
- local: '/.gitlab/ci/.build-container.yml' - local: "/.gitlab/ci/.build-container.yml"
- local: '/.gitlab/ci/.code-quality-ci.yml' - local: "/.gitlab/ci/.code-quality-ci.yml"
- local: '/.gitlab/ci/.security-and-compliance-ci.yml' - local: "/.gitlab/ci/.security-and-compliance-ci.yml"
- local: '/.gitlab/ci/.test.yml' - local: "/.gitlab/ci/.test.yml"
- local: '/.gitlab/ci/.containerlab-ci.yml' - local: "/.gitlab/ci/.containerlab-ci.yml"
- local: '/.gitlab/ci/.integration-test.yml' - local: "/.gitlab/ci/.integration-test.yml"
- local: '/.gitlab/ci/.uml-autogen-ci.yml' - local: "/.gitlab/ci/.uml-autogen-ci.yml"
- local: '/.gitlab/ci/.build-release.yml' - local: "/.gitlab/ci/.build-release.yml"
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
TAG: $CI_COMMIT_BRANCH TAG: $CI_COMMIT_BRANCH
before_script: before_script:
# replace all slashes in the tag with hyphen, because slashes are not allowed in tags # replace all slashes in the tag with hyphen, because slashes are not allowed in tags
- cd controller/
- TAG=${TAG//\//-} - TAG=${TAG//\//-}
- mkdir -p /kaniko/.docker - 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 - 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: ...@@ -23,7 +24,6 @@ build-testing-image:
BUILDARGS: -race BUILDARGS: -race
- when: always - when: always
script: script:
- cd controller/
- /kaniko/executor - /kaniko/executor
--cache=true --cache=true
--context "$CI_PROJECT_DIR" --context "$CI_PROJECT_DIR"
...@@ -48,7 +48,6 @@ build-image: ...@@ -48,7 +48,6 @@ build-image:
BUILDARGS: -race BUILDARGS: -race
- when: always - when: always
script: script:
- cd controller/
- /kaniko/executor - /kaniko/executor
--cache=true --cache=true
--context "$CI_PROJECT_DIR" --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