Skip to content

Instantly share code, notes, and snippets.

@darioblanco
Last active April 19, 2016 13:35
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 darioblanco/629f983bba260f02bd64fad0114d4ef2 to your computer and use it in GitHub Desktop.
Save darioblanco/629f983bba260f02bd64fad0114d4ef2 to your computer and use it in GitHub Desktop.
---
platform: linux
image: docker:///concourse/concourse-ci
inputs:
- name: release
- name: final-release
outputs:
- name: new-release
run:
# Use sh as can't make a gist file executable in a "nice" way
path: sh
args: [release/new-release.sh]
#!/bin/sh
set -e # fail fast
set -x # print commands
git clone final-release new-release
cd new-release
echo $(date) > release-$(date +%s)
git config --global user.email "nobody@concourse.ci"
git config --global user.name "Concourse"
git add .
git commit -m "New release $(date +%s)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment