From 7a0e9296f45dd5caa35d4e0821c2f9b26f936024 Mon Sep 17 00:00:00 2001 From: Pankaj Mouriya Date: Mon, 4 Nov 2024 23:13:37 +0530 Subject: [PATCH] init 10 --- .github/scripts/sync_images.sh | 2 +- .github/workflows/imagePullThrough.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/sync_images.sh b/.github/scripts/sync_images.sh index f45be645..19aa8f28 100644 --- a/.github/scripts/sync_images.sh +++ b/.github/scripts/sync_images.sh @@ -43,7 +43,7 @@ function get_latest_upstream_tag { # Function to pull an image or OCI artifact using regctl function pull_artifact { echo "Pulling $type from $source with regctl..." - regctl image copy --platform linux/arm64,linux/amd64 "$source/$owner/$repo:$tag" "$FULL_ECR_URI/$REPOSITORY:$tag" + regctl image copy --platform linux/amd64 --platform linux/arm64 "$source/$owner/$repo:$tag" "$FULL_ECR_URI/$REPOSITORY:$tag" } # Main script diff --git a/.github/workflows/imagePullThrough.yml b/.github/workflows/imagePullThrough.yml index c7eb9c20..fc64f342 100644 --- a/.github/workflows/imagePullThrough.yml +++ b/.github/workflows/imagePullThrough.yml @@ -3,7 +3,7 @@ name: Multi-Registry Image Sync on: schedule: - cron: '0 0 * * *' - pull_request: + push: branches: - 'poc' workflow_dispatch: