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