-
Notifications
You must be signed in to change notification settings - Fork 2
157 lines (146 loc) · 4.78 KB
/
mirror.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
on:
workflow_dispatch:
schedule:
- cron: "30 5,17 * * *"
jobs:
mirror_tags:
name: Tag ${{ matrix.repo }}
strategy:
fail-fast: false
matrix:
repo:
# Please keep this sorted.
- astro/deadnix
- cachix/nixpkgs-python
- figsoda/utf8
- hyprwm/Hyprland
- infinisil/nixus
- kamadorueda/alejandra
- kamadorueda/nixel
- Mic92/nix-update
- Mic92/nixos-shell
- Mic92/nixpkgs-review
- Mic92/ssh-to-age
- nerdypepper/statix
- nix-community/disko
- nix-community/lanzaboote
- nix-community/nix-direnv
- nix-community/nix-eval-jobs
- nix-community/nixd
- nix-community/nixpkgs-fmt
- NixOS/nix
- vlinkz/nix-software-center
- zhaofengli/colmena
runs-on: ubuntu-latest
permissions:
contents: write # In order to upload artifacts to GitHub releases
id-token: write # In order to request a JWT for AWS auth
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: oprypin/find-latest-tag@v1
with:
repository: ${{ matrix.repo }}
id: tagfetch
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ matrix.repo }}
ref: ${{ steps.tagfetch.outputs.tag }}
- name: Release to FlakeHub
uses: DeterminateSystems/flakehub-push@main
with:
mirror: true
visibility: public
repository: ${{ matrix.repo }}
tag: ${{ steps.tagfetch.outputs.tag }}
log-directives: flakehub_push=trace
logger: pretty
rolling:
name: Branch ${{ matrix.repo }}#${{ matrix.branch }}
strategy:
fail-fast: false
matrix:
include:
# Please keep this sorted.
- repo: cachix/git-hooks.nix
branch: master
- repo: cole-h/nixos-config
branch: darwin
- repo: danth/stylix
branch: master
- repo: DeterminateSystems/nix-netboot-serve
branch: main
- repo: Gerschtli/nix-formatter-pack
branch: master
- repo: hercules-ci/flake-parts
branch: main
- repo: Mic92/sops-nix
branch: master
- repo: nix-community/home-manager
branch: master
too-big: true
run-on: UbuntuLatest32Cores128G
- repo: nix-community/impermanence
branch: master
- repo: nix-community/naersk
branch: master
- repo: nix-community/nixos-generators
branch: master
- repo: nix-community/poetry2nix
branch: master
- repo: nixified-ai/flake
branch: master
- repo: NixOS/nixpkgs
branch: nixos-unstable
- repo: NixOS/nixos-hardware
branch: master
- repo: numtide/flake-utils
branch: main
- repo: oxalica/rust-overlay
branch: master
- repo: ryantm/nixpkgs-update
branch: main
- repo: zhaofengli/attic
branch: main
# Pulled out of the alpha-sorted list, since they're handled special
# in the rapid, fast-acting update handling.
- repo: NixOS/nixpkgs
branch: nixos-24.05
rolling-minor: 2405
- repo: NixOS/nixpkgs
branch: nixos-24.11
rolling-minor: 2411
- repo: nix-community/home-manager
branch: release-24.05
rolling-minor: 2405
too-big: true
run-on: UbuntuLatest32Cores128G
- repo: nix-community/home-manager
branch: release-24.11
rolling-minor: 2411
too-big: true
run-on: UbuntuLatest32Cores128G
runs-on: ${{ matrix.run-on || 'ubuntu-latest' }}
permissions:
contents: write # In order to upload artifacts to GitHub releases
id-token: write # In order to request a JWT for AWS auth
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ matrix.repo }}
ref: ${{ matrix.branch }}
- name: Release to FlakeHub
uses: DeterminateSystems/flakehub-push@main
with:
mirror: true
visibility: public
repository: ${{ matrix.repo }}
rolling: true
rolling-minor: ${{ matrix.rolling-minor }}
log-directives: flakehub_push=trace
logger: pretty
my-flake-is-too-big: ${{ matrix.too-big || false }}