Skip to content

Instantly share code, notes, and snippets.

@polster
Created November 18, 2019 07:43
Show Gist options
  • Save polster/5f802e7fb4927190fa6890f44c804358 to your computer and use it in GitHub Desktop.
Save polster/5f802e7fb4927190fa6890f44c804358 to your computer and use it in GitHub Desktop.
gitlab-ci template script
image: alpine:3.7
.script-snip-one: &script-snip-one |
echo "Running snippet one"
ls -la
.script-snip-two: &script-snip-two |
echo "Running snippet two"
ls -la
stages:
- build
build:
stage: build
script:
- *script-snip-one
- ./build assembleRelease
- *script-snip-two
only:
- develop
tags:
- DOCKER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment