Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- build_dev:
- stage: build
- image:
- name: gcr.io/kaniko-project/executor:debug
- entrypoint: ["/busybox/sh"]
- tags:
- - docker_runner_pr
- rules:
- - if: '$CI_COMMIT_BRANCH == "dev"'
- when: always
- before_script:
- - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
- script:
- - mkdir -p /kaniko/.docker
- - echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 >
- - >-
- /kaniko/executor
- --cache
- --context "$dir://app"
- --dockerfile "$/app/Dockerfile"
- --destination "$DEV_IMAGE"
- - docker push $DEV_IMAGE
Add Comment
Please, Sign In to add comment