File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments