Skip to content

Commit

Permalink
feat: update skopeo
Browse files Browse the repository at this point in the history
  • Loading branch information
yaokl committed Jan 22, 2024
1 parent 2783a83 commit a7c1225
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down

0 comments on commit a7c1225

Please sign in to comment.