Files
scottyah-blog/.woodpecker.yml
Scott Hatlen a0bbd75095
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
syntax
2025-10-09 00:39:19 -07:00

33 lines
757 B
YAML

when:
event: push
branch: main
steps:
- name: echo
image: alpine/git
commands:
- echo "Done"
- 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
# commands:
# - docker build -t scottyah/blog:latest .
# - docker push scottyah/blog:latest
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
- name: deploy
image: kubernetes/client:latest
commands:
- kubectl apply -f k8s.yaml
- kubectl rollout status deployment/blog-dep