mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 16:35:23 +00:00
Move the REGISTRY_ENDPOINT into an env var.
This commit is contained in:
parent
b4756db23b
commit
9c9288e179
@ -10,7 +10,6 @@ request = Promise.promisify require 'request'
|
|||||||
JSONStream = require 'JSONStream'
|
JSONStream = require 'JSONStream'
|
||||||
PlatformAPI = require 'resin-platform-api/request'
|
PlatformAPI = require 'resin-platform-api/request'
|
||||||
|
|
||||||
REGISTRY_ENDPOINT = 'registry.resin.io'
|
|
||||||
DOCKER_SOCKET = '/run/docker.sock'
|
DOCKER_SOCKET = '/run/docker.sock'
|
||||||
PLATFORM_ENDPOINT = url.resolve(process.env.API_ENDPOINT, '/ewa/')
|
PLATFORM_ENDPOINT = url.resolve(process.env.API_ENDPOINT, '/ewa/')
|
||||||
resinAPI = new PlatformAPI(PLATFORM_ENDPOINT)
|
resinAPI = new PlatformAPI(PLATFORM_ENDPOINT)
|
||||||
@ -115,7 +114,7 @@ exports.update = ->
|
|||||||
for envVar in app.environment_variable
|
for envVar in app.environment_variable
|
||||||
env[envVar.name] = envVar.value
|
env[envVar.name] = envVar.value
|
||||||
return {
|
return {
|
||||||
imageId: "#{REGISTRY_ENDPOINT}/#{path.basename(app.git_repository, '.git')}/#{app.commit}"
|
imageId: "#{pocess.env.REGISTRY_ENDPOINT}/#{path.basename(app.git_repository, '.git')}/#{app.commit}"
|
||||||
env: env
|
env: env
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user