forked from jupyterhub/mybinder.org-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.02 KB
/
prune-harbor.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Prune harbor
on:
schedule:
# Run at 03:00 every Sunday, ref: https://crontab.guru/#0_3_*_*_0
- cron: "0 3 * * 0"
workflow_dispatch:
# only allow one prune at a time
concurrency: prune-harbor
jobs:
prune-harbor:
name: Prune ${{ matrix.name }} harbor registry
runs-on: ubuntu-22.04
if: github.repository_owner == 'jupyterhub'
strategy:
fail-fast: false
matrix:
include:
- name: ovh2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: "Install dependencies"
run: |
pip install --upgrade setuptools pip
pip install requests ruamel.yaml tqdm
- name: "Unlock git-crypt secrets"
uses: sliteteam/github-action-git-crypt-unlock@f99c0c6b60bb7ec30dcec033a8f0a3b3d48f21e1
env:
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY }}
- name: Prune registry
run: |
python3 scripts/prune_harbor.py ${{ matrix.name }}