wip34
This commit is contained in:
parent
4f54266926
commit
41875aa5a4
13
.drone.yml
13
.drone.yml
|
@ -9,7 +9,15 @@ environment:
|
||||||
IMAGE_TAG: "latest"
|
IMAGE_TAG: "latest"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build_image
|
- name: test_build_image
|
||||||
|
image: gcr.io/kaniko-project/executor:v1.7.0-debug
|
||||||
|
commands:
|
||||||
|
- echo "testing build image without push"
|
||||||
|
- /kaniko/executor --context $DRONE_WORKSPACE --dockerfile Dockerfile --destination $CI_REGISTRY_IMAGE:$IMAGE_TAG --no-push
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
- name: test_build_image
|
||||||
image: gcr.io/kaniko-project/executor:v1.7.0-debug
|
image: gcr.io/kaniko-project/executor:v1.7.0-debug
|
||||||
commands:
|
commands:
|
||||||
- echo "init registry credentials"
|
- echo "init registry credentials"
|
||||||
|
@ -17,3 +25,6 @@ steps:
|
||||||
- mkdir -p /kanico/.docker
|
- mkdir -p /kanico/.docker
|
||||||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
||||||
- /kaniko/executor --context $DRONE_WORKSPACE --dockerfile Dockerfile --destination $CI_REGISTRY_IMAGE:$IMAGE_TAG --no-push
|
- /kaniko/executor --context $DRONE_WORKSPACE --dockerfile Dockerfile --destination $CI_REGISTRY_IMAGE:$IMAGE_TAG --no-push
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
Loading…
Reference in New Issue