From 8ee55c77f93c87041c30c09ced42e751d5acc8d6 Mon Sep 17 00:00:00 2001 From: Juck Zhang <35656100+JuckZ@users.noreply.github.com> Date: Thu, 1 Dec 2022 12:09:59 +0800 Subject: [PATCH] Update sync-images.yml --- .github/workflows/sync-images.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-images.yml b/.github/workflows/sync-images.yml index 2ff2b72..76bd291 100644 --- a/.github/workflows/sync-images.yml +++ b/.github/workflows/sync-images.yml @@ -1,5 +1,11 @@ name: "sync image" -on: workflow_dispatch +on: + workflow_dispatch: + push: + branches: + - main + paths: + - 'imagelist.yaml' jobs: sync-images: runs-on: ubuntu-latest @@ -13,5 +19,6 @@ jobs: wget -c /~https://github.com/AliyunContainerService/image-syncer/releases/download/v1.3.1/image-syncer-v1.3.1-linux-amd64.tar.gz -O - | tar -xz echo "$CONFIG" > config.yaml cat imagelist.yaml >> config.yaml + echo config.yaml - name: "run image-syncer" run: ./image-syncer --config config.yaml