Skip to content
Snippets Groups Projects
Commit 9cd786de authored by yyvf's avatar yyvf
Browse files

ci: testing buildah

parent 35ec04a6
No related branches found
No related tags found
No related merge requests found
Pipeline #41654 failed
...@@ -5,20 +5,12 @@ stages: ...@@ -5,20 +5,12 @@ stages:
build: build:
stage: build stage: build
image: image:
name: gcr.io/kaniko-project/executor:debug name: quay.io/buildah/stable
entrypoint: [""] entrypoint: [""]
script: script:
- echo "{\"auths\":{\"${HARBOR_HOST}\":{\"auth\":\"$(echo -n ${HARBOR_USERNAME}:${HARBOR_PASSWORD} | base64 -w 0)\"}}}" > /kaniko/.docker/config.json - echo "${HARBOR_PASSWORD}" | buildah login -u "${HARBOR_USERNAME}" --password-stdin "${HARBOR_HOST}"
- >- - buildah bud -t "${HARBOR_HOST}/${HARBOR_PROJECT}/${CI_PROJECT_NAME}:${CI_COMMIT_TAG}" "${CI_PROJECT_DIR}"
/kaniko/executor - buildah push "${HARBOR_HOST}/${HARBOR_PROJECT}/${CI_PROJECT_NAME}:${CI_COMMIT_TAG}"
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${HARBOR_HOST}/${HARBOR_PROJECT}/${CI_PROJECT_NAME}:${CI_COMMIT_TAG}"
--single-snapshot
--snapshot-mode=redo
--use-new-run
--cache=true
--compressed-caching=true
deploy: deploy:
stage: deploy stage: deploy
......
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