Skip to content

Commit 890cde9

Browse files
committed
test
1 parent a2d6752 commit 890cde9

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

github-action/dist/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,6 +2250,12 @@ function runMain() {
22502250
else {
22512251
// If buildResult doesn't have imageDigest, try to get it from the built image
22522252
if (imageName) {
2253+
// sleep for 5 seconds
2254+
yield new Promise(resolve => setTimeout(resolve, 5000));
2255+
// list images
2256+
const listCmd = yield (0, exec_1.exec)('docker', ['images', '--format', '{{.Repository}}:{{.Tag}}'], { silent: true });
2257+
core.info(`Images: ${listCmd.stdout}`);
2258+
// get the digest of the image
22532259
const inspectCmd = yield (0, exec_1.exec)('docker', [
22542260
'buildx',
22552261
'imagetools',

github-action/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github-action/src/main.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ export async function runMain(): Promise<void> {
153153
} else {
154154
// If buildResult doesn't have imageDigest, try to get it from the built image
155155
if (imageName) {
156+
// sleep for 5 seconds
157+
await new Promise(resolve => setTimeout(resolve, 5000));
158+
// list images
159+
const listCmd = await exec(
160+
'docker',
161+
['images', '--format', '{{.Repository}}:{{.Tag}}'],
162+
{silent: true},
163+
);
164+
core.info(`Images: ${listCmd.stdout}`);
165+
// get the digest of the image
156166
const inspectCmd = await exec(
157167
'docker',
158168
[

0 commit comments

Comments
 (0)