-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.yml
More file actions
62 lines (62 loc) · 1.72 KB
/
ci.yml
File metadata and controls
62 lines (62 loc) · 1.72 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
58
59
60
61
62
schemaVersion: v0.2
prepare:
steps:
- name: Update nix
command: curl -L https://nixos.org/nix/install | sh
- command: cd guacamole && ./user-mapping.sh
- command: mkdir -p guacamole/guacamole-client/{logs,temp,work}
- name: Deploy landscape
command: "curl -X 'POST'
https://csa-demo.codesphere-demo.com/api/workspaces/$WORKSPACE_ID/lands\
cape/deploy -H 'accept: */*' -H 'Authorization: Bearer
$CS_TOKEN' -d ''"
- name: Start run stage
command: "curl -X 'POST'
https://csa-demo.codesphere-demo.com/api/workspaces/$WORKSPACE_ID/pipel\
ine/run/start -H 'accept: */*' -H 'Authorization: Bearer
$CS_TOKEN' -d ''"
test:
steps: []
run:
proxy:
steps:
- command: nix-env -iA nixpkgs.socat
- command: socat TCP-LISTEN:3000,fork TCP:$VM_URL
plan: 8
replicas: 1
network:
ports:
- port: 3000
isPublic: false
paths:
- port: 3000
path: /
stripPath: false
tomcat-guacamole:
steps:
- command: nix-env -iA nixpkgs.guacamole-client nixpkgs.tomcat9 nixpkgs.jdk
- command: ~/.nix-profile/bin/catalina.sh run
plan: 8
replicas: 1
network:
ports:
- port: 3000
isPublic: false
paths:
- port: 3000
path: /guacamole
stripPath: false
guacd:
steps:
- command: cd /home/user/app/guacamole/guacamole-server && nix-build
- command: python3 -m http.server 3000 &
- command: ./guacamole/guacamole-server/result/bin/guacd -f -b 0.0.0.0 -l 4822
plan: 101
replicas: 1
network:
ports:
- port: 3000
isPublic: false
- port: 4822
isPublic: false
paths: []