run on nixos
Some checks failed
Build and Publish / build-release (push) Failing after 1m8s

This commit is contained in:
2026-03-31 16:32:46 -05:00
parent d886e043a1
commit ba9257a1a0

View File

@@ -13,20 +13,14 @@ env:
jobs:
build-release:
runs-on: ubuntu-latest
runs-on: nixos
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build Docker Image via Nix Flake
run: |
export HOME=$TMPDIR
nix build --impure ./build/#dockerImage
nix build ./build/#dockerImage
docker load -i result
- name: Log in to Gitea Container Registry
@@ -40,19 +34,16 @@ jobs:
run: |
VERSION=${{ github.run_number }}
TARGET_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
nix shell nixpkgs#docker
# Replace 'nix-built-image:latest' with your flake's internal image name
docker tag nix-built-image:latest $TARGET_IMAGE:$VERSION
docker push $TARGET_IMAGE:$VERSION
- name: Setup Helm
uses: azure/setup-helm@v4
with:
version: v3.14.0
- name: Package Helm Chart
run: |
VERSION=${{ github.run_number }}
nix shell nixpkgs#kubernetes-helm
# Packages the chart using the dynamically injected repo name
helm package ops/chart --version $VERSION --app-version $VERSION