Skip to content

Commit afe5837

Browse files
shlevybogdan-manole
authored andcommitted
deploy: Use nixbuild.net for builds
1 parent 742f61e commit afe5837

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

deploy/dapps-certification.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ spec:
4141
name: github-secrets
4242
- name: DB_PATH
4343
value: "/db/certification.sqlite"
44-
image: ghcr.io/demoiog/plutus-certification:28
44+
- name: token
45+
valueFrom:
46+
secretKeyRef:
47+
key: token
48+
name: nbn
49+
image: ghcr.io/input-output-hk/plutus-certification:PLT-7784-nixbuild.net
4550
imagePullPolicy: IfNotPresent
4651
imagePullSecrets:
4752
- iohk-ghcr-creds
@@ -56,6 +61,33 @@ spec:
5661
- name: ipc
5762
mountPath: /ipc
5863
traits:
64+
# TODO: Abstract this into a custom trait type, along with the NBN token secret above
65+
- type: storage
66+
properties:
67+
configMap:
68+
- name: ssh
69+
mountPath: /etc/ssh
70+
data:
71+
ssh_config: |
72+
Host eu.nixbuild.net
73+
PreferredAuthentications none
74+
User authtoken
75+
SendEnv token
76+
77+
Host *
78+
AddressFamily any
79+
GlobalKnownHostsFile /etc/ssh/ssh_known_hosts
80+
ssh_known_hosts: |
81+
eu.nixbuild.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM
82+
- name: nix
83+
mountPath: /etc/nix
84+
data:
85+
nix.conf: |
86+
store = ssh-ng://eu.nixbuild.net
87+
experimental-features = nix-command flakes
88+
require-sigs = true
89+
substituters = https://cache.nixos.org/ https://cache.iog.io ssh://eu.nixbuild.net
90+
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= nixbuild.net/[email protected]:s2PhQXWwsZo1y5IxFcx2D/i2yfvgtEnRBOZavlA8Bog=
5991
- type: storage
6092
properties:
6193
pvc:

0 commit comments

Comments
 (0)