tangled
alpha
login
or
join now
crashkeys.dev
/
audquotes
0
fork
atom
Source code for my personal quote bot project.
0
fork
atom
overview
issues
pulls
pipelines
repo: initial attempt at setting up CI with Spindle.
ironballista
4 months ago
b9fa296e
5b3cd39e
0/0
Waiting for spindle ...
+32
-1
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
build.yml
flake.nix
+31
.tangled/workflows/build.yml
···
1
1
+
when:
2
2
+
- event: ["push", "manual"]
3
3
+
branch: ["main"]
4
4
+
5
5
+
engine: "nixery"
6
6
+
7
7
+
# using the default values
8
8
+
clone:
9
9
+
skip: false
10
10
+
depth: 1
11
11
+
submodules: false
12
12
+
13
13
+
dependencies:
14
14
+
nixpkgs:
15
15
+
- skopeo
16
16
+
17
17
+
# environment:
18
18
+
19
19
+
steps:
20
20
+
- name: "Build Docker Image"
21
21
+
command: "nix build .#docker.x86-64-linux.default"
22
22
+
- name: "Push image to Fly.io registry"
23
23
+
command: >
24
24
+
skopeo --insecure-policy copy
25
25
+
docker-archive:./result
26
26
+
docker://registry.fly.io/${APP_NAME}:latest
27
27
+
--dest-creds x:"$FLY_ACCESS_TOKEN"
28
28
+
--format v2s2
29
29
+
30
30
+
environment:
31
31
+
APP_NAME: "audquotes"
+1
-1
flake.nix
···
25
25
in {
26
26
packages = {
27
27
default = rustApp;
28
28
-
docker = pkgs.dockerTools.streamLayeredImage {
28
28
+
docker = pkgs.dockerTools.buildLayeredImage {
29
29
name = "localhost/${pkgName}";
30
30
tag = "latest";
31
31
contents = [ rustApp ];