Use Gitlab CI for buiding

This commit is contained in:
Greg Hellings
2024-04-22 01:38:32 -05:00
parent dd7b328d46
commit 992bbac7ac
4 changed files with 15 additions and 99 deletions
+15
View File
@@ -0,0 +1,15 @@
stages:
- build
- deploy
build:
stage: build
tags:
- nix
- podman
script:
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- nix build .
- podman load -i result
- podman tag "localhost/gregs-homepage:latest" $CI_REGISTRY/greg/homepage/gregs-homepage:latest
- podman push $CI_REGISTRY/greg/homepage/gregs-homepage:latest