18 lines
419 B
YAML
18 lines
419 B
YAML
stages:
|
|
- build
|
|
|
|
build:
|
|
stage: build
|
|
tags:
|
|
- nix
|
|
- podman
|
|
script:
|
|
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
- |-
|
|
for img in vm-test; do
|
|
nix build ".#${img}"
|
|
podman load -i result
|
|
podman tag "localhost/${img}:latest" $CI_REGISTRY/greg/ci-images/${img}:latest
|
|
podman push "$CI_REGISTRY/greg/ci-images/${img}:latest"
|
|
done
|