diff --git a/.gitea/workflows/sync-secrets.yml b/.gitea/workflows/sync-secrets.yml new file mode 100644 index 0000000..28ceb9b --- /dev/null +++ b/.gitea/workflows/sync-secrets.yml @@ -0,0 +1,28 @@ +name: sync registry secrets +on: + workflow_dispatch: + schedule: + - cron: '17 * * * *' + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup python + uses: actions/setup-python@v5 + with: + python-version: "3.13" + + - name: sync secrets + env: + SECRETS_SYNCER_TOKEN: ${{ secrets.SECRETS_SYNCER_TOKEN }} + REGISTRY_USERNAME_VALUE: ${{ secrets.REGISTRY_USERNAME_VALUE }} + REGISTRY_TOKEN_VALUE: ${{ secrets.REGISTRY_TOKEN_VALUE }} + REGISTRY_PASSWORD_VALUE: ${{ secrets.REGISTRY_PASSWORD_VALUE }} + REPO_LIMIT: '200' + run: | + python tools/sync-registry-secrets.py + continue-on-error: true