Revert "Remove gitea actions"
ci / test (push) Failing after 3m20s Details
ci / deploy (push) Has been skipped Details
ci/woodpecker/push/deploy Pipeline was successful Details

This reverts commit 1acf5e2d70.
This commit is contained in:
Ciapa 2024-05-20 17:29:47 +02:00
parent 8a9350b114
commit d06987ebbd
2 changed files with 102 additions and 0 deletions

65
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,65 @@
name: ci
on:
push:
branches:
- master
jobs:
test:
runs-on:
- ubuntu-latest
- nixos
- x86_64
container:
volumes:
- /mnt/cache/nix_store:/nix
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install sudo
run: apt update && apt install -y sudo
- name: Install Nix
uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
- name: Flake check
run: nix flake check
deploy:
runs-on:
- ubuntu-latest
- nixos
- x86_64
container:
volumes:
- /mnt/cache/nix_store:/nix
needs: test
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install sudo
run: apt update && apt install -y sudo
- name: Install Nix
uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
- name: Load ssh key
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deploy
run: nix develop --command deploy --rollback-succeeded false
env:
ACTION_RUNTIME_TOKEN: ''
GITHUB_TOKEN: ''

37
.github/workflows/update.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: update-flake-inputs
on:
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs:
update-lockfile:
runs-on:
- ubuntu-latest
- nixos
- x86_64
container:
volumes:
- /mnt/cache/nix_store:/nix
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install sudo
run: apt update && apt install -y sudo
- name: Install Nix
uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
extra_nix_config: |
access-tokens = gitnext.lewd.wtf=${{ secrets.AUTOUPDATE_TOKEN }}
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v20
env:
ACTION_RUNTIME_TOKEN: ''
GITHUB_TOKEN: ''
with:
pr-title: "update flake inputs"
pr-labels: |
update
automated