-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.53 KB
/
update-versions.yml
File metadata and controls
57 lines (53 loc) · 1.53 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Update Versions
on:
push:
branches: [main]
schedule:
- cron: "0 * * * *"
workflow_dispatch:
permissions:
id-token: write
contents: write
packages: write
jobs:
update:
runs-on: warp-ubuntu-latest-arm64-2x
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set git identity
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
- uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Update versions
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
nix run .#default -- update \
--docker-image=rocicorp/zero \
--chart-path=Chart.yaml \
--oci-registry=ghcr.io \
--oci-repo=synapdeck/zero-cache-chart
prune:
needs: update
runs-on: warp-ubuntu-latest-arm64-2x
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Prune untagged OCI versions
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
nix run .#default -- prune \
--oci-repo=synapdeck/zero-cache-chart/zero-cache \
--max-age-days=7