Skip to content
Snippets Groups Projects
Commit 95e97ea5 authored by Dimitrios Giannopoulos's avatar Dimitrios Giannopoulos
Browse files

added registry credentials to kaniko

parent a1177993
No related branches found
No related tags found
2 merge requests!36Merging 2024Q2_RC into main, creating 2024Q2 Release,!7Resolve "Create a pipeline to build and publish the docker image in gitlab registry"
Pipeline #3653 failed
...@@ -36,6 +36,7 @@ build_image: ...@@ -36,6 +36,7 @@ build_image:
fi fi
- echo "Building Docker image with tag $IMAGE_TAG" - echo "Building Docker image with tag $IMAGE_TAG"
script: script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor - /kaniko/executor
--context "${CI_PROJECT_DIR}" --context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile" --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment