Skip to content

Instantly share code, notes, and snippets.

@Muldec
Created April 25, 2019 13:21
Show Gist options
  • Save Muldec/f91a1ea1029dc5a9389f932113d7f77a to your computer and use it in GitHub Desktop.
Save Muldec/f91a1ea1029dc5a9389f932113d7f77a to your computer and use it in GitHub Desktop.
This shows how to use gitlab anchors to manage parts of scripts
.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