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: 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