Skip to content

Commit d8c11c1

Browse files
🤖 add workflow change for images. (#94)
1 parent 96eb44f commit d8c11c1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: auto-sync-deepflow.yaml
2+
on:
3+
push:
4+
branches: [ main ]
5+
paths:
6+
- "skopeo/auto-sync-deepflow.yaml"
7+
- ".github/workflows/auto-sync-deepflow.yaml"
8+
schedule:
9+
- cron: '0 16 * * *'
10+
workflow_dispatch:
11+
12+
env:
13+
USERNAME: ${{ vars.A_REGISTRY_USERNAME }}
14+
PASSWORD: ${{ secrets.A_REGISTRY_TOKEN }}
15+
16+
jobs:
17+
image-sync:
18+
runs-on: ubuntu-22.04
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: check podman
25+
run: |
26+
sudo podman version
27+
28+
- name: sync images
29+
run: |
30+
sudo podman run -it --rm -v ${PWD}:/workspace -w /workspace quay.io/skopeo/stable:latest \
31+
sync --src yaml --dest docker skopeo/auto-sync-deepflow.yaml ${{ vars.A_REGISTRY_NAME }}/${{ vars.A_REGISTRY_REPOSITORY }} \
32+
--dest-username $USERNAME --dest-password "$PASSWORD" \
33+
--keep-going --retry-times 2 --all

0 commit comments

Comments
 (0)