Skip to content

Commit d157d4f

Browse files
committed
test: copy tar to docker immediately after build
1 parent 890cde9 commit d157d4f

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

github-action/dist/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,11 @@ function runMain() {
22422242
// Create a digests object to track digests for each platform
22432243
const digestsObj = {};
22442244
if (platform) {
2245+
for (const tag of imageTagArray) {
2246+
const imageSource = `oci-archive:/tmp/output.tar:${tag}`;
2247+
const imageDest = `docker://${imageName}:${tag}`;
2248+
yield (0, skopeo_1.copyImage)(true, imageSource, imageDest);
2249+
}
22452250
// Extract the image digest from the build output
22462251
if (buildResult.imageDigests) {
22472252
core.info(`Image digest for ${platform}: ${buildResult.imageDigests}`);

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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ export async function runMain(): Promise<void> {
144144
const digestsObj: Record<string, string> = {};
145145

146146
if (platform) {
147+
for (const tag of imageTagArray) {
148+
const imageSource = `oci-archive:/tmp/output.tar:${tag}`;
149+
const imageDest = `docker://${imageName}:${tag}`;
150+
await copyImage(true, imageSource, imageDest);
151+
}
152+
147153
// Extract the image digest from the build output
148154
if (buildResult.imageDigests) {
149155
core.info(

0 commit comments

Comments
 (0)