Skip to content

Commit 3b9a2e9

Browse files
🤖 add workflow change for images. (#31)
1 parent 258fbef commit 3b9a2e9

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: auto-sync-image-18.yaml
2+
on:
3+
push:
4+
branches: [ main ]
5+
paths:
6+
- "skopeo/auto-sync-image-18.yaml"
7+
- ".github/workflows/auto-sync-image-18.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-image-18.yaml ${{ vars.A_REGISTRY_NAME }}/${{ vars.A_REGISTRY_REPOSITORY }} \
32+
--dest-username $USERNAME --dest-password "$PASSWORD" \
33+
--keep-going --retry-times 2 --all

‎skopeo/auto-sync-image-17.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ docker.io:
55
labring/gitlab: []
66
labring/kyverno: []
77
labring/piraeus-operator: []
8+
labring/loki-stack: []
9+
labring/grafana: []
10+
labring/grafana-operator: []
811
tls-verify: false
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
docker.io:
2+
images:
3+
labring/promtail: []
4+
labring/sonarqube: []
5+
labring/discourse: []
6+
labring/jenkins-operator: []
7+
labring/nextcloud: []
8+
labring/argo-rollouts: []
9+
labring/openebs-nfs: []
10+
labring/argo-workflows: []
11+
labring/teleport: []
12+
tls-verify: false

0 commit comments

Comments
 (0)