Skip to content

k8s.gcr.io/scheduler-plugins #3183

k8s.gcr.io/scheduler-plugins

k8s.gcr.io/scheduler-plugins #3183

name: k8s.gcr.io/scheduler-plugins
on:
workflow_dispatch:
inputs:
reason:
description: 'run action reason'
required: false
type: string
default: 'manually test'
schedule:
- cron: '* 14 * * *'
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
scheduler-plugins:
runs-on: ubuntu-latest
steps:
- name: Checkout result branch
uses: actions/checkout@v3
with:
repository: x-mirrors/gcr.io
ref: 'scheduler-plugins'
token: ${{ secrets.GITHUB_TOKEN }}
path: gcr.io
- name: Container Images Sync
uses: x-actions/python3-cisctl@v1
env:
GIT_ORG: "x-mirrors"
GIT_REPO: "gcr.io"
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SRC_IMAGE_LIST_URL: "https://raw.githubusercontent.com/x-mirrors/gcr.io/main/k8s.gcr.io/scheduler-plugins.txt"
DEST_REPO: "docker.io/k8sgcrioschedulerplugins"
SRC_TRANSPORT: "docker"
DEST_TRANSPORT: "docker"
DEST_TRANSPORT_USER: "xiexianbin"
DEST_TRANSPORT_PASSWORD: "${{ secrets.DEST_TRANSPORT_PASSWORD }}"
- name: Public result to github
uses: x-actions/git-push@v1
continue-on-error: true
env:
GITHUB_EMAIL: 'me@xiexianbin.cn'
GITHUB_USERNAME: 'xiexianbin'
PUBLISH_REPO: https://${{ secrets.GITHUB_TOKEN }}@github.com/x-mirrors/gcr.io.git
PUBLISH_BRANCH: scheduler-plugins
PUBLISH_DIR: 'gcr.io'