Last active
April 19, 2016 13:35
-
-
Save darioblanco/629f983bba260f02bd64fad0114d4ef2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 "[email protected]" | |
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