mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-02 09:17:57 +00:00
Merge pull request #1688 from balena-os/livepush-tag
Remove version tag from livepush generated image
This commit is contained in:
commit
415ce55324
@ -16,7 +16,7 @@ interface Opts {
|
||||
|
||||
export async function initDevice(opts: Opts) {
|
||||
const arch = opts.arch ?? (await device.getDeviceArch(opts.docker));
|
||||
const image = `${opts.imageName}:${opts.imageTag}`;
|
||||
const image = `${opts.imageName}-${opts.imageTag}`;
|
||||
|
||||
await device.performBuild(opts.docker, opts.dockerfile, {
|
||||
buildargs: { ARCH: arch },
|
||||
@ -31,11 +31,7 @@ export async function initDevice(opts: Opts) {
|
||||
// /tmp/update-supervisor.conf with our version, and
|
||||
// restart the supervisor
|
||||
await device.stopSupervisor(opts.address);
|
||||
await device.replaceSupervisorImage(
|
||||
opts.address,
|
||||
opts.imageName,
|
||||
opts.imageTag,
|
||||
);
|
||||
await device.replaceSupervisorImage(opts.address, image, 'latest');
|
||||
await device.startSupervisor(opts.address);
|
||||
|
||||
let supervisorContainer: undefined | Docker.ContainerInfo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user