diff options
-rw-r--r-- | .github/workflows/publish-docker.yml | 3 | ||||
-rw-r--r-- | flake.nix | 25 | ||||
-rw-r--r-- | readme.md | 3 |
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 |
@@ -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); |
@@ -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 | ||
66 | REPOSITORY TAG IMAGE ID CREATED SIZE | 63 | REPOSITORY TAG IMAGE ID CREATED SIZE |
67 | ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB | 64 | ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB |
68 | 65 | ||