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

This commit is contained in:
Daniel Eklöf 2021-10-10 19:07:21 +02:00
parent 62e67a26f5
commit dfd9590931
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 -Ldoas README.md INSTALL.md CHANGELOG.md *.c *.h doc/*.scd - codespell -Ldoas README.md INSTALL.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:
@ -59,6 +62,7 @@ pipeline:
- cd ../.. - cd ../..
x86: x86:
when: { branch: master }
group: build group: build
image: i386/alpine:latest image: i386/alpine:latest
commands: commands: