Skip to content

Instantly share code, notes, and snippets.

@whitingjr
Created October 15, 2024 14:22
Show Gist options
  • Save whitingjr/0063b93c80a0d82a44ac810450502d20 to your computer and use it in GitHub Desktop.
Save whitingjr/0063b93c80a0d82a44ac810450502d20 to your computer and use it in GitHub Desktop.
hosts:
target: ${{USER:}}${{="${{USER:}}"!="" ?"@":""}}${{HOST}}
scripts:
setup-names:
- sh: mktemp -d
then:
- set-state: RUN.topsail_dir
- set-state: topsail_name topsail-foo
clone-repo:
- sh: cd ${{topsail_dir}}
- sh: "if [ ! -d topsail ]; then git clone --quiet https://github.com/openshift-psap/topsail.git; fi"
then:
- regex: fatal
then:
- abort: failed to clone topsail
- sh: cd topsail
- sh: git fetch --quiet origin ${{commitId}}
- sh: git reset FETCH_HEAD
- sh: git submodule --quiet update --init --recursive
- sh: git submodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment