tangled
alpha
login
or
join now
quasigod.xyz
/
nixconfig
8
fork
atom
My NixOS and Home Manager configurations
8
fork
atom
overview
issues
pulls
pipelines
create mirror action
quasigod.xyz
5 months ago
1a4581bb
dd21ba20
verified
This commit was signed with the committer's
known signature
.
quasigod.xyz
SSH Key Fingerprint:
SHA256:IYQIQqk4Il5k+VDa+O4RM4mqCqVtyRilM/eLPbx2jjc=
0/1
mirror.yaml
failed
7s
+45
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
mirror.yaml
+45
.tangled/workflows/mirror.yaml
reviewed
···
1
1
+
when:
2
2
+
- event: [ "push", "manual" ]
3
3
+
branch: [ "main" ]
4
4
+
5
5
+
dependencies:
6
6
+
nixpkgs:
7
7
+
- git
8
8
+
- openssh
9
9
+
10
10
+
engine: "nixery"
11
11
+
12
12
+
clone:
13
13
+
depth: 99999999
14
14
+
15
15
+
steps:
16
16
+
- name: create ssh dir
17
17
+
command: |
18
18
+
mkdir ~/.ssh
19
19
+
- name: write codeberg key
20
20
+
command: |
21
21
+
echo $CODEBERG_DEPLOY_KEY > ~/.ssh/codeberg
22
22
+
- name: write github key
23
23
+
command: |
24
24
+
echo $GITHUB_DEPLOY_KEY > ~/.ssh/github
25
25
+
- name: set ssh permissions
26
26
+
command: |
27
27
+
chmod -R 600 ~/.ssh
28
28
+
29
29
+
- name: add codeberg remote
30
30
+
command: |
31
31
+
git remote add codeberg ssh://git@codeberg.org/quasigod/nixconfig.git
32
32
+
- name: push to codeberg
33
33
+
environment:
34
34
+
GIT_SSH_COMMAND: "ssh -v -i ~/.ssh/codeberg -o StrictHostKeyChecking=no -l git"
35
35
+
command: |
36
36
+
git push codeberg --mirror
37
37
+
38
38
+
- name: add github remote
39
39
+
command: |
40
40
+
git remote add github git@github.com:michaelBelsanti/nixconfig.git
41
41
+
- name: push to githuub
42
42
+
environment:
43
43
+
GIT_SSH_COMMAND: "ssh -v -i ~/.ssh/github -o StrictHostKeyChecking=no -l git"
44
44
+
command: |
45
45
+
git push github --mirror