feat: destination_registry parameter for save
This commit is contained in:
parent
9a5228e4be
commit
2342b9a6fc
|
@ -40,6 +40,7 @@ function(config)
|
||||||
'registry_domain',
|
'registry_domain',
|
||||||
'registry_port',
|
'registry_port',
|
||||||
'registry_password',
|
'registry_password',
|
||||||
|
'destination_registry'
|
||||||
],
|
],
|
||||||
script +: [
|
script +: [
|
||||||
login,
|
login,
|
||||||
|
@ -50,12 +51,12 @@ function(config)
|
||||||
out: std.strReplace(def.save, '/', '_'),
|
out: std.strReplace(def.save, '/', '_'),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
'echo "docker load %(out)s.tar" >> /%(root)s/.images/%(name)s/load.sh' % (
|
'echo "docker load < %(out)s.tar" >> /%(root)s/.images/%(name)s/load.sh' % (
|
||||||
config + {
|
config + {
|
||||||
out: std.strReplace(def.save, '/', '_'),
|
out: std.strReplace(def.save, '/', '_'),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
'echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/%(root)s/%(name)s/%(pull)s /%(root)s/DOLLAR1/%(pull)s" >> /%(root)s/.images/%(name)s/load.sh' % (
|
'echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/%(root)s/%(name)s/%(pull)s $${DESTINATION_REGISTRY}/%(root)s/%(name)s/%(pull)s" >> /%(root)s/.images/%(name)s/load.sh' % (
|
||||||
config +
|
config +
|
||||||
{
|
{
|
||||||
pull: def.save,
|
pull: def.save,
|
||||||
|
@ -77,6 +78,7 @@ function(config)
|
||||||
'registry_domain',
|
'registry_domain',
|
||||||
'registry_port',
|
'registry_port',
|
||||||
'registry_password',
|
'registry_password',
|
||||||
|
'destination_registry',
|
||||||
],
|
],
|
||||||
script +: [
|
script +: [
|
||||||
login,
|
login,
|
||||||
|
@ -93,7 +95,7 @@ function(config)
|
||||||
out: std.strReplace(def, '/', '_'),
|
out: std.strReplace(def, '/', '_'),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
'echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/%(root)s/%(name)s/%(pull)s /%(root)s/DOLLAR1/%(pull)s" >> /%(root)s/.images/%(name)s/built/load.sh' % (
|
'echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/%(root)s/%(name)s/%(pull)s ${DESINATION_REGISTRY}/%(root)s/%(name)s/%(pull)s" >> /%(root)s/.images/%(name)s/built/load.sh' % (
|
||||||
config +
|
config +
|
||||||
{
|
{
|
||||||
pull: def,
|
pull: def,
|
||||||
|
|
Loading…
Reference in New Issue