containers/.taskfiles/ci-os.yaml

20 lines
565 B
YAML
Raw Normal View History

2024-11-15 06:24:10 +00:00
version: "3"
tasks:
build:
desc: Build local docker image (nixos-builder)
dir: "{{ .ROOT_DIR }}/apps/ci-os"
cmds:
2024-12-30 20:50:06 +00:00
- docker buildx build --platform linux/amd64 -t code.252.no/pub/ci-os-builder .
- |
container_id=$(docker create code.252.no/pub/ci-os-builder)
docker cp $container_id:/workspace/result ci-os.tar
docker rm $container_id
- docker load < ci-os.tar
2024-11-15 06:24:10 +00:00
publish:
desc: Builds and pushes the flakes action image
dir: "{{ .ROOT_DIR }}/apps/ci-os"
cmds:
2024-12-30 20:50:06 +00:00
- nerdctl push code.252.no/pub/ci-os:latest