Use the registry endpoint from config, not environment

This commit is contained in:
Petros Angelatos 2014-08-22 14:54:16 +01:00 committed by Pablo Carranza Vélez
parent 3c5e856ef2
commit a10f118ab9

View File

@ -203,7 +203,7 @@ exports.update = update = ->
return {
appId: '' + app.id
commit: app.commit
imageId: "#{process.env.REGISTRY_ENDPOINT}/#{path.basename(app.git_repository, '.git')}/#{app.commit}"
imageId: "#{config.registryEndpoint}/#{path.basename(app.git_repository, '.git')}/#{app.commit}"
env: JSON.stringify(env) # The env has to be stored as a JSON string for knex
}