@atolis-hq/wake 0.2.82 → 0.2.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { waitForActiveRuns } from './stop-command.js';
|
|
2
|
+
import { resolveWakeVersion } from '../version.js';
|
|
2
3
|
const HEALTHCHECK_WAKE_ROOT = '/tmp/wake-self-update-healthcheck';
|
|
3
4
|
const START_PROCESS_CHECK_ATTEMPTS = 15;
|
|
4
5
|
const START_PROCESS_CHECK_INTERVAL_MS = 1000;
|
|
@@ -97,12 +98,13 @@ export async function runSelfUpdateCommand(input) {
|
|
|
97
98
|
};
|
|
98
99
|
try {
|
|
99
100
|
await input.git.checkoutTag(tag);
|
|
100
|
-
|
|
101
|
+
const buildVersion = input.resolveBuildVersion?.(input.repoRoot) ??
|
|
102
|
+
resolveWakeVersion({ repoRoot: input.repoRoot });
|
|
101
103
|
await input.docker.build({
|
|
102
104
|
image: newImage,
|
|
103
105
|
dockerfile: input.dockerfilePath,
|
|
104
106
|
contextDir: input.repoRoot,
|
|
105
|
-
buildArgs: { WAKE_BUILD_TAG:
|
|
107
|
+
buildArgs: { WAKE_BUILD_TAG: buildVersion },
|
|
106
108
|
});
|
|
107
109
|
await input.docker.update({ ...updateInput, image: newImage });
|
|
108
110
|
input.logger.info('[self-update] recreated container; entrypoint will keep wake start running');
|
package/dist/src/version.js
CHANGED