ci: limit builds to the master branch (and pulls targeting it)

This commit is contained in:
Daniel Eklöf 2021-10-10 19:05:47 +02:00
parent 77303e8173
commit 6250360c58
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -5,6 +5,7 @@ clone:
pipeline: pipeline:
codespell: codespell:
when: { branch: master }
image: alpine:latest image: alpine:latest
commands: commands:
- apk add python3 - apk add python3
@ -13,6 +14,7 @@ pipeline:
- codespell README.md CHANGELOG.md *.c *.h doc/*.scd - codespell README.md CHANGELOG.md *.c *.h doc/*.scd
subprojects: subprojects:
when: { branch: master }
image: alpine:latest image: alpine:latest
commands: commands:
- apk add git - apk add git
@ -22,6 +24,7 @@ pipeline:
- cd .. - cd ..
x64: x64:
when: { branch: master }
group: build group: build
image: alpine:latest image: alpine:latest
commands: commands:
@ -72,6 +75,7 @@ pipeline:
- cd ../.. - cd ../..
x86: x86:
when: { branch: master }
group: build group: build
image: i386/alpine:latest image: i386/alpine:latest
commands: commands: