forked from Mirror/pmbootstrap
CI: Use yaml anchor for global before_script (MR 2297)
The local before_script variable overrides the global one, which I assume wasn't the intent when the local before_script was added to mr-settings. As such, add an achor to ensure that the global one is run too.
This commit is contained in:
parent
ca844038f1
commit
b7dd9bec69
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ workflow:
|
|||
- if: $CI_COMMIT_BRANCH == 'master'
|
||||
- if: $CI_COMMIT_BRANCH == 'wip'
|
||||
|
||||
before_script:
|
||||
before_script: &global_before_scripts
|
||||
- ".ci/note.sh"
|
||||
- "echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories"
|
||||
- "adduser -D build"
|
||||
|
@ -52,6 +52,7 @@ mr-settings:
|
|||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||
before_script:
|
||||
- *global_before_scripts
|
||||
- "apk -q add python3"
|
||||
- "wget -q 'https://gitlab.com/postmarketOS/ci-common/-/raw/master/check_mr_settings.py'"
|
||||
script:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue