[ci][wip] utilisation de devtools/kaniko du lirmm
This commit is contained in:
parent
159d38cb94
commit
5184ab4411
|
@ -47,16 +47,10 @@ run:
|
||||||
- dist/*.whl
|
- dist/*.whl
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: buildah/buildah
|
image: $CI_REGISTRY/devtools/kaniko
|
||||||
dependencies:
|
|
||||||
- build
|
|
||||||
before_script:
|
|
||||||
- podman version
|
|
||||||
- buildah version
|
|
||||||
# - podman login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
|
|
||||||
# - podman login --username "${REGISTRY_USERNAME}" --password "${REGISTRY_PASSWORD}" "${REGISTRY_SERVER}"
|
|
||||||
script:
|
script:
|
||||||
- buildah bud -t ${IMAGE_NAME}:${CI_COMMIT_SHA} .
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
||||||
# - buildah push ${IMAGE_NAME}:${CI_COMMIT_SHA} docker://${IMAGE_NAME}:${CI_COMMIT_SHA}
|
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY/malves/halfapi:latest
|
||||||
after_script:
|
artifacts:
|
||||||
# - podman logout "${REGISTRY_SERVER}"
|
paths:
|
||||||
|
- /kaniko/.docker/config.json
|
||||||
|
|
Loading…
Reference in New Issue