Skip to content

Commit

Permalink
Fix (ci): Run builds only on designated branches (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh authored Dec 9, 2023
1 parent 8a29a08 commit 6c371d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ build-image:
DOCKER_DRIVER: overlay2
# DOCKER_HOST: unix:///var/run/docker.sock # For stateful builds, uncomment this, or set it in CI/CD variables
rules:
# Run on all branches except master, when .trigger is added or modified
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != "master"
# Run on steam-* branches when .trigger is added or modified
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ /^steam-\w+-\w+$/
changes:
- .trigger
timeout: 120m
Expand All @@ -40,8 +40,8 @@ notify:
stage: notify
image: alpine:3.15
rules:
# Run on all branches except master, when .trigger is added or modified
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != "master"
# Run on steam-* branches when .trigger is added or modified
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ /^steam-\w+-\w+$/
changes:
- .trigger
when: always
Expand Down

0 comments on commit 6c371d2

Please sign in to comment.