using kaniko
This commit is contained in:
@@ -8,15 +8,27 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- echo "Done"
|
- echo "Done"
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:dind
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
commands:
|
commands:
|
||||||
- sleep 5 # Wait for Docker daemon to start
|
- /kaniko/executor
|
||||||
- docker build -t scottyah/blog:latest .
|
--context .
|
||||||
- docker push scottyah/blog:latest
|
--dockerfile Dockerfile
|
||||||
|
--destination scottyah/blog:latest
|
||||||
|
--cache=true
|
||||||
|
secrets: [docker_username, docker_password]
|
||||||
environment:
|
environment:
|
||||||
DOCKER_HOST: tcp://127.0.0.1:2375
|
DOCKER_CONFIG: /kaniko/.docker
|
||||||
privileged: true
|
|
||||||
|
# - name: build
|
||||||
|
# image: docker:dind
|
||||||
|
# commands:
|
||||||
|
# - sleep 5 # Wait for Docker daemon to start
|
||||||
|
# - docker build -t scottyah/blog:latest .
|
||||||
|
# - docker push scottyah/blog:latest
|
||||||
|
# environment:
|
||||||
|
# DOCKER_HOST: tcp://127.0.0.1:2375
|
||||||
|
# privileged: true
|
||||||
|
|
||||||
# - name: build
|
# - name: build
|
||||||
# image: docker
|
# image: docker
|
||||||
|
|||||||
Reference in New Issue
Block a user