Commit 9b6496ff authored by Henry Oswald's avatar Henry Oswald
parents 77933a9a c8e17084
node_modules/
api-data
versions/
......@@ -3,6 +3,7 @@ services = require('./services')
module.exports = (grunt) ->
tag = grunt.option("tag") or 'latest'
to = grunt.option("to") or 'latest'
repos = []
for service in services
url = service.repo.split('/')
......@@ -29,10 +30,16 @@ module.exports = (grunt) ->
src: repos
dest: 'versions/' + tag + '.json'
rename:
main:
files: [{ src: ['versions/latest.json'], dest: 'versions/' + to + '.json'}]
grunt.loadNpmTasks 'grunt-docker-io'
grunt.loadNpmTasks 'grunt-github-api'
grunt.loadNpmTasks 'grunt-contrib-rename'
grunt.registerTask 'build', ['docker_io', 'github']
grunt.registerTask 'gitrev', ['github']
grunt.registerTask 'cut', ['rename']
grunt.registerTask 'default', ['build']
......@@ -4,8 +4,9 @@
"description": "none",
"dependencies": {
"grunt": "^0.4.5",
"grunt-contrib-rename": "0.0.3",
"grunt-docker-io": "^0.7.0",
"simple-git": "^1.32.1",
"grunt-github-api": "^0.2.3"
"grunt-github-api": "^0.2.3",
"simple-git": "^1.32.1"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment