-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.concourse-ci.yaml
51 lines (46 loc) · 1.44 KB
/
.concourse-ci.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
44
45
46
47
48
49
50
51
---
resources:
- name: universe-git
type: git
icon: git
source:
uri: https://git.sapphicco.de/SapphicCode/universe.git
public: true
jobs:
- name: set-pipeline
plan:
- get: universe-git
trigger: true
params:
branch: main
- set_pipeline: self
file: universe-git/.concourse-ci.yaml
- name: test-home-manager
public: true
plan:
- get: universe-git
trigger: true
- task: test
config:
inputs:
- name: universe-git
path: .
platform: linux
image_resource:
type: registry-image
source:
repository: docker.io/library/ubuntu
tag: latest
run:
path: sh
args:
- -exc
- |
apt-get update
apt-get install -y sudo curl xz-utils git
useradd sapphiccode -mU -s /bin/bash
echo "sapphiccode ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
sudo -u sapphiccode bash -ec "sh <(curl -L https://nixos.org/nix/install) --no-daemon"
sudo -u sapphiccode bash -ec "mkdir -p ~/.config/nix && echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf"
chown -R sapphiccode:sapphiccode .
sudo -u sapphiccode bash -lec "nix run home-manager -- switch --flake $(pwd)#generic_comfy"