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