I am very new to this concept and I believe I am trying to solve a simple problem. I am trying to make a CI/CD pipeline that builds a Dockerfile and deploys the image to JFrog so that I can pull it in for other CI/CD pipelines. We are using a Kubernetes cluster so I am using Kaniko to try this. The below yml passes. I believe I need to add --destination and point it to my jfrog repo.
Has anyone been successful using Kaniko and publishing to a different Artifactory than GitLab?
build-container:
stage: build
needs: []
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- >-
/kaniko/executor
--context ${CI_PROJECT_DIR}/src/main/docker
--dockerfile Dockerfile --no-push
- echo ${CI_REGISTRY}
- echo ${CI_REGISTRY_USER}