-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
justfile
47 lines (37 loc) · 1.64 KB
/
justfile
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
# SPDX-FileCopyrightText: 2023 Christina Sørensen
# SPDX-FileContributor: Christina Sørensen
#
# SPDX-License-Identifier: AGPL-3.0-only
serve:
./landscape2 serve --landscape-dir build
build:
./landscape2 build --data-file data.yml --settings-file settings.yml --guide-file guide.yml --logos-path logos --output-dir build
container:
docker image rm nixlang/landscape2:latest --force
docker build -t nixlang/landscape2 -t ghcr.io/nixlang-wiki/nixos-landscape -t registry.digitalocean.com/rime/nixos-landscape --label org.opencontaienrs.image.source="https://github.com/nixlang-wiki/nixos-landscape" --label org.opencontaienrs.image.description="landscape of nix/nixos" --label org.opencontainers.image.license="AGPL-3.0" .
buildContainer:
docker build -t nixlang/landscape2 -t ghcr.io/nixlang-wiki/nixos-landscape -t registry.digitalocean.com/rime/nixos-landscape --label org.opencontaienrs.image.source="https://github.com/nixlang-wiki/nixos-landscape" --label org.opencontaienrs.image.description="landscape of nix/nixos" --label org.opencontainers.image.license="AGPL-3.0" .
pushContainer:
docker push ghcr.io/nixlang-wiki/nixos-landscape:latest
buildAndPushContainer:
just buildContainer
just pushContainer
run:
docker run -p 8000:80 ghcr.io/nixlang-wiki/nixos-landscape:latest
deploy:
just buildAndPushContainer
kubectl rollout -n landscape restart statefulset landscape
rust-build:
#!/usr/bin/env sh
set -euxo pipefail
cd src
cargo build
cp target/debug/landscape2 ../landscape2
cd ..
rust-build-release:
#!/usr/bin/env sh
set -euxo pipefail
cd src
cargo build --release
cp target/release/landscape2 ../landscape2
cd ..