Created
April 25, 2019 13:21
-
-
Save Muldec/f91a1ea1029dc5a9389f932113d7f77a to your computer and use it in GitHub Desktop.
This shows how to use gitlab anchors to manage parts of scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.foo: &foo |- | |
echo "Do" | |
echo "Something" | |
echo "Multi-line" | |
.bar: &bar |- | |
echo "Some" | |
echo "More" | |
echo "Actions" | |
Stage 1: | |
script: | |
- *foo | |
- *bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment