diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 3c03059..c83aae4 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -29,9 +29,9 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt . /etc/os-release - wget https://github.com/lework/skopeo-binary/releases/download/v1.14.1/skopeo-linux-amd64 -O /usr/bin/skopeo - chmod +x /usr/bin/skopeo - skopeo --version + wget https://github.com/lework/skopeo-binary/releases/download/v1.14.1/skopeo-linux-amd64 -O /tmp/skopeo + chmod +x /tmp/skopeo + /tmp/skopeo --version - name: generate_sync_yaml timeout-minutes: 30 run: | diff --git a/sync.sh b/sync.sh index 00017c7..c55d908 100644 --- a/sync.sh +++ b/sync.sh @@ -8,9 +8,9 @@ repo="$hub/kainstall" if [ -f sync.yaml ]; then echo "[Start] sync......." cat sync.yaml custom_sync.yaml - sudo skopeo login -u ${HUB_USERNAME} -p ${HUB_PASSWORD} ${hub} \ - && sudo skopeo --insecure-policy sync -a --src yaml --dest docker sync.yaml $repo \ - && sudo skopeo --insecure-policy sync -a --src yaml --dest docker custom_sync.yaml $repo + sudo /tmp/skopeo login -u ${HUB_USERNAME} -p ${HUB_PASSWORD} ${hub} \ + && sudo /tmp/skopeo --insecure-policy sync -a --src yaml --dest docker sync.yaml $repo \ + && sudo /tmp/skopeo --insecure-policy sync -a --src yaml --dest docker custom_sync.yaml $repo echo "[End] done."