Add NAS CI demo

This commit is contained in:
admin
2026-06-16 03:38:51 +08:00
commit 91576dbaa6
4 changed files with 148 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
steps:
- name: smoke
image: alpine:3.20
commands:
- echo "Woodpecker can clone and run this repository."
- test -f Dockerfile
- test -f index.html
- name: build-and-push
image: docker:28-cli
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker version
- docker build -t localhost:5050/cicd-demo:latest .
- docker push localhost:5050/cicd-demo:latest
when:
- event: push
branch: main
- event: manual