chore: cleanup taskfiles

This commit is contained in:
Tommy 2024-11-15 07:24:10 +01:00
parent 119359f198
commit 46a97eb5d1
Signed by: tommy
SSH key fingerprint: SHA256:1LWgQT3QPHIT29plS8jjXc3S1FcE/4oGvsx3Efxs6Uc
3 changed files with 16 additions and 14 deletions

14
.taskfiles/ci-os.yaml Normal file
View file

@ -0,0 +1,14 @@
version: "3"
tasks:
build:
desc: Build local docker image (nixos-builder)
dir: "{{ .ROOT_DIR }}/apps/ci-os"
cmds:
- nix build .#packages.x86_64-linux.build-image && nerdctl load < result
publish:
desc: Builds and pushes the flakes action image
dir: "{{ .ROOT_DIR }}/apps/ci-os"
cmds:
- nerdctl push code.252.no/tommy/ci-os:latest

View file

@ -1,19 +1,6 @@
version: "3" version: "3"
tasks: tasks:
build-ci-os:
desc: Builds and pushes the flakes action image
dir: "{{ .ROOT_DIR }}/apps/lix-builder"
cmds:
- nix build .#packages.x86_64-linux.build-image && nerdctl load < result &&
nerdctl push code.252.no/tommy/ci-os: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: shell:
desc: Drop into a build shell desc: Drop into a build shell
env: env:

View file

@ -5,7 +5,8 @@ vars:
sh: "git rev-parse --show-toplevel" sh: "git rev-parse --show-toplevel"
includes: includes:
docker: .taskfiles/docker.yaml ci-os: .taskfiles/ci-os.yaml
misc: .taskfiles/misc.yaml
tasks: tasks:
default: default: