containers/.taskfiles/docker.yaml

32 lines
938 B
YAML

version: "3"
tasks:
build-flakesaction:
desc: Builds and pushes the flakes action image
dir: "{{ .ROOT_DIR }}/apps/lix-builder"
cmds:
- nix build .#packages.x86_64-linux.flakes-action && nerdctl load < result
&& nerdctl push code.252.no/tommy/flakes-action:latest
create-image:
desc: Build local docker image (nixos-builder)
cmds:
- nerdctl build --platform linux/amd64 -t nixos-builder --no-cache
apps/lix-builder
shell:
desc: Drop into a build shell
env:
app: "{{ .app }}"
cmds:
- nerdctl run -v "$(pwd)/apps/{{.app}}":/root/working-dir -w
/root/working-dir --platform linux/amd64 -it nixos-builder -c "nix
develop"
cache:
desc: Start an attic server
dir: "attic"
cmds:
- nerdctl run -it --rm --name=attic -p 8080:8080 -v
./config:/var/empty/.config/attic -v ./data:/var/empty/.local/share/attic
docker.io/heywoodlh/attic