diff --git a/.woodpecker.yml b/.woodpecker.yml index 2074d59..3fb4ff0 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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