Skip to content
Snippets Groups Projects
Commit 0843d501 authored by yyvf's avatar yyvf
Browse files

ci: test

parent d7543ba2
No related branches found
No related tags found
No related merge requests found
Pipeline #41880 failed
......@@ -5,21 +5,14 @@ stages:
build:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
name: quay.io/buildah/stable
entrypoint: [""]
before_script:
- echo "{\"auths\":{\"${HARBOR_HOST}\":{\"auth\":\"$(echo -n ${HARBOR_USERNAME}:${HARBOR_PASSWORD} | base64 -w 0)\"}}}" > /kaniko/.docker/config.json
variables:
STORAGE_DRIVER: vfs
script:
- >-
/kaniko/executor
--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
- echo "$HARBOR_PASSWORD" | buildah login -u "$HARBOR_USERNAME" --password-stdin $HARBOR_HOST
- buildah build -t ${HARBOR_HOST}/${HARBOR_PROJECT}/${CI_PROJECT_NAME}:${CI_COMMIT_TAG}
- buildah push ${HARBOR_HOST}/${HARBOR_PROJECT}/${CI_PROJECT_NAME}:${CI_COMMIT_TAG}
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