Merge branch 'main' into kafka

Signed-off-by: shenlan <manbuzhe2009@qq.com>
This commit is contained in:
shenlan 2025-01-07 01:50:07 +08:00 committed by GitHub
commit fce5b307de
3 changed files with 47 additions and 3 deletions

View File

@ -39,4 +39,4 @@ jobs:
docker push $dest_image
}
sync_image "docker.io/bitnami/kafka:3.9.0-debian-12-r4" "images.onwalk.net/public/kafka:3.9.0-debian-12-r4"
sync_image "docker.io/bitnami/kubectl:1.32.0-debian-12-r0" "images.onwalk.net/public/kubectl:1.32.0-debian-12-r0"
sync_image "docker.io/bitnami/kubectl:1.32.0-debian-12-r0" "images.onwalk.net/public/kubectl:1.32.0-debian-12-r0"

View File

@ -38,5 +38,7 @@ jobs:
docker tag $src_image $dest_image
docker push $dest_image
}
sync_image "busybox:1.32" "images.onwalk.net/public/busybox:1.32"
sync_image "docker.io/mysql:5.7.30" "images.onwalk.net/public/database/mysql:5.7.30"
sync_image "docker.io/library/redis:alpine" "images.onwalk.net/public/redis:alpine"
sync_image "docker.io/otel/opentelemetry-collector-contrib:0.62.0" "images.onwalk.net/public/opentelemetry-collector-contrib:0.62.0"
#sync_image "busybox:1.32" "images.onwalk.net/public/busybox:1.32"
#sync_image "docker.io/mysql:5.7.30" "images.onwalk.net/public/database/mysql:5.7.30"

View File

@ -0,0 +1,42 @@
name: sync images for Redis
on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- '.github/workflows/sync-images-redis.yaml'
workflow_dispatch:
branches:
- main
jobs:
sync-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Initialization environment
env:
USER: ${{ secrets.IMAGES_REPO_USER }}
PASSWORD: ${{ secrets.IMAGES_REPO_PASSWORD }}
shell: bash
run: |
sudo apt update
sudo apt install git -y
echo "$PASSWORD" | docker login --username=$USER --password-stdin images.onwalk.net
- name: sync images
shell: bash
run: |
function sync_image()
{
local src_image=$1
local dest_image=$2
docker pull $src_image
docker tag $src_image $dest_image
docker push $dest_image
}
sync_image "docker.io/bitnami/redis-cluster:7.4.1-debian-12-r3" "images.onwalk.net/public/redis-cluster:7.4.1-debian-12-r3"
sync_image "docker.io/bitnami/redis:7.4.1-debian-12-r3" "images.onwalk.net/public/redis:7.4.1-debian-12-r3"