Compare commits

...

2 Commits

Author SHA1 Message Date
bd1dd4c2d6 Merge pull request 'scope when jobs run' (#12) from scope-when into main
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #12
2024-07-08 23:25:20 +00:00
92cea97430 scope when jobs run
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-07-08 19:24:41 -04:00

View File

@ -12,8 +12,9 @@ steps:
- apk add curl - apk add curl
- docker build . - docker build .
when: when:
- event: push
branch: branch:
exclude: ["master", "main"] exclude: ["main"]
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
@ -28,7 +29,8 @@ steps:
- 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"' - 'curl http://100.113.98.36:4000/api/update -H "Authorization: Bearer $COMPOSE_TOKEN"'
secrets: [docker_username, docker_password, compose_token] secrets: [docker_username, docker_password, compose_token]
when: when:
- event: push
branch: branch:
include: ["master", "main"] include: ["main"]
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock