containers/.taskfiles/ci-os.yaml
Tommy Skaug 14a76a5d7c
Some checks failed
Build and Push Images with Kaniko / discover-dockerfiles (push) Successful in 59s
Build and Push Images with Kaniko / build-and-push (push) Failing after 4s
misc
2024-12-30 21:50:06 +01:00

19 lines
565 B
YAML

version: "3"
tasks:
build:
desc: Build local docker image (nixos-builder)
dir: "{{ .ROOT_DIR }}/apps/ci-os"
cmds:
- 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
publish:
desc: Builds and pushes the flakes action image
dir: "{{ .ROOT_DIR }}/apps/ci-os"
cmds:
- nerdctl push code.252.no/pub/ci-os:latest