From ae2a54ddc7a8aef25952d85b2b931c09533b723b Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Tue, 26 Nov 2024 15:49:54 +0800 Subject: [PATCH] workflows: sync vector 0.37.1 images -> images.onwalk.net --- .github/workflows/sync-images-vector.yaml | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/sync-images-vector.yaml diff --git a/.github/workflows/sync-images-vector.yaml b/.github/workflows/sync-images-vector.yaml new file mode 100644 index 0000000..dc411b1 --- /dev/null +++ b/.github/workflows/sync-images-vector.yaml @@ -0,0 +1,32 @@ +name: Sync Images for Vector + +on: + schedule: + - cron: "0 0 * * *" + pull_request: + paths: + - '.github/workflows/sync-images-vector.yaml' + push: + paths: + - '.github/workflows/sync-images-vector.yaml' + workflow_dispatch: + branches: + - main + +jobs: + harbor-core: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Initialize and Sync Vector images + env: + USER: ${{ secrets.IMAGES_REPO_USER }} + PASSWORD: ${{ secrets.IMAGES_REPO_PASSWORD }} + shell: bash + run: | + sudo apt update && sudo apt install -y git + echo "$PASSWORD" | docker login --username=$USER --password-stdin images.onwalk.net + docker pull docker.io/timberio/vector:0.37.1-distroless-libc + docker tag docker.io/timberio/vector:0.37.1-distroless-libc images.onwalk.net/public/timberio/vector:0.37.1-distroless-libc + docker push images.onwalk.net/public/timberio/vector:0.37.1-distroless-libc +