Compare commits

..

2 Commits

Author SHA1 Message Date
julian a11aa8c38b Improve readme
Build and Publish Runner Image / build-and-push (push) Failing after 5m58s
2026-06-04 17:09:07 +02:00
julian 091288fe4b ci: simplify to use manual comands 2026-06-04 17:08:57 +02:00
2 changed files with 9 additions and 17 deletions
+6 -9
View File
@@ -29,13 +29,10 @@ jobs:
username: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build container image
run: |
docker build . -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
provenance: false
- name: Push container image
run: |
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
+3 -8
View File
@@ -11,10 +11,11 @@ Running standard Nix commands inside unprivileged Docker containers (which Gitea
This project solves all of the above by baking everything into a single, clean base image.
## ✨ Features
* **Base:** Official `cachix/devenv:latest` (Nix and Devenv pre-installed, flakes enabled).
* **Base:** Official `docker.gitea.com/runner-images:ubuntu-latest-slim`
* **Actions Compatible:** Pre-loaded with `nodejs`, `bash`, and `jq` so standard GitHub/Gitea Actions execute flawlessly.
* **Privilege Escalation:** Configured with passwordless `sudo` for smooth CI execution.
* **Pre-cleaned:** The `/homeless-shelter` artifact is purged during the build, guaranteeing a pure Nix environment out-of-the-box.
* **devenv available:** [devenv](https://devenv.sh/) is already installed and ready to use
## 🚀 Usage in your CI/CD
@@ -33,22 +34,16 @@ jobs:
# 1. Point the runner to use this custom image
container:
image: gitlab.julian-mutter.de/julian/nix-ci-runner:latest
# Provide credentials if your registry is private
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
# Node.js is pre-installed, so standard actions work instantly
- name: Checkout repository
uses: actions/checkout@v4
# Optional: Add caching (nix-community/cache-nix-action) here
# 2. Run your Nix commands natively
- name: Build Flake
run: nix build .#default
```
## 🔄 Maintenance
This repository contains a scheduled Gitea Action that runs **every Sunday**. It automatically pulls the latest `devenv` base image, reinstalls the dependencies, and pushes a fresh `latest` tag to the registry. Your pipelines will always have up-to-date Nix packages without manual intervention.
This repository contains a scheduled Gitea Action that runs **every Sunday**. It automatically pulls the latest base image, reinstalls the dependencies, and pushes a fresh `latest` tag to the registry. Your pipelines will always have up-to-date Nix packages without manual intervention.