aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/publish-docker.yml3
-rw-r--r--flake.nix25
-rw-r--r--readme.md3
3 files changed, 3 insertions, 28 deletions
diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml
index a07d70b..9083701 100644
--- a/.github/workflows/publish-docker.yml
+++ b/.github/workflows/publish-docker.yml
@@ -14,7 +14,7 @@ jobs:
14 uses: actions/checkout@v4 14 uses: actions/checkout@v4
15 15
16 - name: build docker image 16 - name: build docker image
17 run: docker build . 17 run: docker build -t lurker:latest .
18 18
19 - name: log in to github container registry 19 - name: log in to github container registry
20 uses: docker/login-action@v3 20 uses: docker/login-action@v3
@@ -25,6 +25,5 @@ jobs:
25 25
26 - name: publish docker image 26 - name: publish docker image
27 run: | 27 run: |
28 docker load < result
29 docker tag lurker:latest ghcr.io/${{ github.repository_owner }}/lurker:latest 28 docker tag lurker:latest ghcr.io/${{ github.repository_owner }}/lurker:latest
30 docker push ghcr.io/${{ github.repository_owner }}/lurker:latest 29 docker push ghcr.io/${{ github.repository_owner }}/lurker:latest
diff --git a/flake.nix b/flake.nix
index c4d5d23..9a1b620 100644
--- a/flake.nix
+++ b/flake.nix
@@ -41,7 +41,7 @@
41 cp -R ./node_modules/* $out/node_modules 41 cp -R ./node_modules/* $out/node_modules
42 ls -la $out/node_modules 42 ls -la $out/node_modules
43 ''; 43 '';
44 outputHash = "sha256-iv1DddCTB1yyu21Ev/c4xtLHSvDas9jQAO2Ob9Iah2Q="; 44 outputHash = "sha256-wCMsk/gR+U5fCHcRj7Mxvh9Lg6wZAtMn7CvjyCPar+g=";
45 outputHashAlgo = "sha256"; 45 outputHashAlgo = "sha256";
46 outputHashMode = "recursive"; 46 outputHashMode = "recursive";
47 }; 47 };
@@ -73,27 +73,6 @@
73 73
74 ''; 74 '';
75 }; 75 };
76 dockerImage = with final;
77 final.dockerTools.buildImage {
78 name = pname;
79 tag = "latest";
80
81 copyToRoot = final.buildEnv {
82 name = "image-root";
83 paths = [final.lurker];
84 pathsToLink = ["/bin"];
85 };
86
87 runAsRoot = ''
88 mkdir -p /data
89 '';
90
91 config = {
92 Cmd = ["/bin/${pname}"];
93 WorkingDir = "/data";
94 Volumes = {"/data" = {};};
95 };
96 };
97 }; 76 };
98 77
99 devShell = forAllSystems (system: let 78 devShell = forAllSystems (system: let
@@ -108,7 +87,7 @@
108 }); 87 });
109 88
110 packages = forAllSystems (system: { 89 packages = forAllSystems (system: {
111 inherit (nixpkgsFor."${system}") lurker node_modules dockerImage; 90 inherit (nixpkgsFor."${system}") lurker node_modules;
112 }); 91 });
113 92
114 defaultPackage = forAllSystems (system: nixpkgsFor."${system}".lurker); 93 defaultPackage = forAllSystems (system: nixpkgsFor."${system}".lurker);
diff --git a/readme.md b/readme.md
index 6afb77b..a3c4339 100644
--- a/readme.md
+++ b/readme.md
@@ -60,9 +60,6 @@ or with the docker image:
60# pull the latest image from gh container registry 60# pull the latest image from gh container registry
61$ docker pull ghcr.io/oppiliappan/lurker:latest 61$ docker pull ghcr.io/oppiliappan/lurker:latest
62 62
63# the image will be marked as created on 1970, this is a
64# quirk of using nix, it should not affect usage
65$ docker image ls
66REPOSITORY TAG IMAGE ID CREATED SIZE 63REPOSITORY TAG IMAGE ID CREATED SIZE
67ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB 64ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB
68 65