scope when jobs run #12

Merged
alazyreader merged 1 commits from scope-when into main 2024-07-08 23:25:20 +00:00
Showing only changes of commit 92cea97430 - Show all commits

View File

@ -12,8 +12,9 @@ steps:
- apk add curl
- docker build .
when:
- event: push
branch:
exclude: ["master", "main"]
exclude: ["main"]
volumes:
- /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"'
secrets: [docker_username, docker_password, compose_token]
when:
- event: push
branch:
include: ["master", "main"]
include: ["main"]
volumes:
- /var/run/docker.sock:/var/run/docker.sock