19 lines
565 B
YAML
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
|