workflow updates

This commit is contained in:
Robin Appelman 2025-05-30 23:28:10 +02:00
commit 0956185daa
3 changed files with 17 additions and 28 deletions

16
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,16 @@
name: "CI"
on:
pull_request:
push:
jobs:
checks:
runs-on: nix
steps:
- uses: actions/checkout@v4
- uses: https://codeberg.org/icewind/attic-action@v1
with:
name: link
instance: https://cache.icewind.link
authToken: "${{ secrets.ATTIC_TOKEN }}"
- run: nix flake check --keep-going

View file

@ -1,28 +0,0 @@
name: docker-build
on:
push:
branches:
- "master"
jobs:
docker:
runs-on: ubuntu-20.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: icewind1991/log-normalizer
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View file

@ -18,6 +18,7 @@
]; ];
extraPaths = [ extraPaths = [
./.sqlx ./.sqlx
./tests
]; ];
nixosModules = {outputs, ...}: { nixosModules = {outputs, ...}: {