Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Livin21/f5f73be3ec6cf39f5c519d0d7203510e to your computer and use it in GitHub Desktop.
Save Livin21/f5f73be3ec6cf39f5c519d0d7203510e to your computer and use it in GitHub Desktop.
Ultron - Riafy Deployment Management Tool
image: samueldebruyn/debian-git
pipelines:
branches:
master:
- step:
caches:
- node
script:
- apt-get update
- apt-get -qq install curl
- curl -sL https://deb.nodesource.com/setup_10.x | bash -
- apt-get update
- apt-get install -y nodejs build-essential tar
- touch archive.tar.gz
- npm install
- CI=false npm run build
- tar --exclude=.git --exclude=archive.tar.gz -zcvf archive.tar.gz -C build .
- curl -sL --request POST -F 'passphrase='$ULTRON_TOKEN -F 'upload=@archive.tar.gz' --url $ULTRON_URL'?stack='$PROJECT_STACK'&project='$PROJECT_NAME'&dir='$PROJECT_DIRECTORY
image: samueldebruyn/debian-git
pipelines:
branches:
master:
- step:
script:
- apt-get update
- apt-get install -y tar curl
- touch archive.tar.gz
- tar --exclude=.git --exclude=archive.tar.gz -zcvf archive.tar.gz .
- curl -sL --request POST -F 'passphrase='$ULTRON_TOKEN -F 'upload=@archive.tar.gz' --url $ULTRON_URL'?stack='$PROJECT_STACK'&project='$PROJECT_NAME'&dir='$PROJECT_DIRECTORY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment