using kaniko

This commit is contained in:
Scott Hatlen
2025-10-09 00:43:24 -07:00
parent a0bbd75095
commit b0e9257b81

View File

@@ -8,15 +8,27 @@ steps:
commands:
- echo "Done"
- name: build
image: docker:dind
- name: build
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