Skip to content

Commit

Permalink
🤖 add workflow change for images. (#51)
Browse files Browse the repository at this point in the history
Signed-off-by: sealos-ci-robot <[email protected]>
  • Loading branch information
sealos-ci-robot authored Oct 13, 2023
1 parent 5248480 commit 7556f3e
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/auto-sync-image-32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: auto-sync-image-32.yaml
on:
push:
branches: [ main ]
paths:
- "skopeo/auto-sync-image-32.yaml"
- ".github/workflows/auto-sync-image-32.yaml"
schedule:
- cron: '0 16 * * *'
workflow_dispatch:

env:
USERNAME: ${{ vars.A_REGISTRY_USERNAME }}
PASSWORD: ${{ secrets.A_REGISTRY_TOKEN }}

jobs:
image-sync:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v2

- name: check podman
run: |
sudo podman version
- name: sync images
run: |
sudo podman run -it --rm -v ${PWD}:/workspace -w /workspace quay.io/skopeo/stable:latest \
sync --src yaml --dest docker skopeo/auto-sync-image-32.yaml ${{ vars.A_REGISTRY_NAME }}/${{ vars.A_REGISTRY_REPOSITORY }} \
--dest-username $USERNAME --dest-password "$PASSWORD" \
--keep-going --retry-times 2 --all
33 changes: 33 additions & 0 deletions .github/workflows/auto-sync-image-33.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: auto-sync-image-33.yaml
on:
push:
branches: [ main ]
paths:
- "skopeo/auto-sync-image-33.yaml"
- ".github/workflows/auto-sync-image-33.yaml"
schedule:
- cron: '0 16 * * *'
workflow_dispatch:

env:
USERNAME: ${{ vars.A_REGISTRY_USERNAME }}
PASSWORD: ${{ secrets.A_REGISTRY_TOKEN }}

jobs:
image-sync:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v2

- name: check podman
run: |
sudo podman version
- name: sync images
run: |
sudo podman run -it --rm -v ${PWD}:/workspace -w /workspace quay.io/skopeo/stable:latest \
sync --src yaml --dest docker skopeo/auto-sync-image-33.yaml ${{ vars.A_REGISTRY_NAME }}/${{ vars.A_REGISTRY_REPOSITORY }} \
--dest-username $USERNAME --dest-password "$PASSWORD" \
--keep-going --retry-times 2 --all
4 changes: 4 additions & 0 deletions skopeo/auto-sync-image-31.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
docker.io:
images:
labring/bitnami-kibana: []
labring/filebeat: []
labring/kibana: []
labring/vector: []
labring/zookeeper-operator: []
tls-verify: false
8 changes: 8 additions & 0 deletions skopeo/auto-sync-image-32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
docker.io:
images:
labring/bitnami-fluentd: []
labring/kafka-ui: []
labring/openobserve: []
labring/prometheus: []
labring/vector-operator: []
tls-verify: false
6 changes: 6 additions & 0 deletions skopeo/auto-sync-image-33.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docker.io:
images:
labring/elasticsearch: []
labring/fluent-operator: []
labring/koperator: []
tls-verify: false

0 comments on commit 7556f3e

Please sign in to comment.