Files
scottyah-blog/.woodpecker.yml
2025-10-09 00:38:00 -07:00

33 lines
758 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