Test
This commit is contained in:
parent
6145ea0b9b
commit
59722eb56d
3 changed files with 100 additions and 13 deletions
.forgejo/workflows
|
@ -1,6 +1,5 @@
|
|||
# .forgejo/workflows/demo.yaml
|
||||
name: build-nixos-iso
|
||||
run-name: ${{ github.actor }} - build-nixos-iso
|
||||
name: build-console-iso
|
||||
run-name: ${{ github.actor }} - build-console-iso
|
||||
on: [push]
|
||||
jobs:
|
||||
build-console-iso:
|
||||
|
@ -31,25 +30,16 @@ jobs:
|
|||
uname -a
|
||||
hostname
|
||||
cat /etc/os-release
|
||||
|
||||
- name: "Nix Version"
|
||||
run: |
|
||||
nix --version
|
||||
|
||||
- name: "Nix build"
|
||||
run: |
|
||||
echo "Running Nix Build"
|
||||
nix --extra-experimental-features "nix-command flakes" \
|
||||
build /workspace/albert/nix#imageConfigurations.nixos-iso-console
|
||||
echo "Results:"
|
||||
ls result/iso/
|
||||
|
||||
# - run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
|
||||
# - run: echo "This job is now running on a ${{ runner.os }} server."
|
||||
# - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
||||
# - run: echo "The ${{ github.repository }} repository has been cloned to the runner."
|
||||
# - run: echo "The workflow is now ready to test your code on the runner."
|
||||
# - run: echo "This job's status is ${{ job.status }}."
|
||||
ls -lah result/iso/
|
||||
|
||||
- if: always()
|
||||
run: rm -rf /.cache
|
47
.forgejo/workflows/build-desktop-iso.yml
Normal file
47
.forgejo/workflows/build-desktop-iso.yml
Normal file
|
@ -0,0 +1,47 @@
|
|||
name: build-desktop-iso
|
||||
run-name: ${{ github.actor }} - build-desktop-iso
|
||||
on: [push]
|
||||
jobs:
|
||||
build-desktop-iso:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: alpine:edge
|
||||
steps:
|
||||
- name: "Setup Runner"
|
||||
run: |
|
||||
apk update
|
||||
apk add git nodejs nix --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.forgejo
|
||||
home-manager
|
||||
lib
|
||||
nixos
|
||||
flake.lock
|
||||
flake.nix
|
||||
shell.nix
|
||||
- name: "Directory Structure"
|
||||
run: |
|
||||
ls ${{ github.workspace }}/*
|
||||
- name: "Runner: Node Info"
|
||||
run: |
|
||||
id
|
||||
uname -a
|
||||
hostname
|
||||
cat /etc/os-release
|
||||
- name: "Nix Version"
|
||||
run: |
|
||||
nix --version
|
||||
- name: "Nix build"
|
||||
run: |
|
||||
echo "Running Nix Build"
|
||||
nix --extra-experimental-features "nix-command flakes" \
|
||||
build /workspace/albert/nix#imageConfigurations.nixos-iso-desktop
|
||||
echo "Results:"
|
||||
ls -lah result/iso/
|
||||
|
||||
- if: always()
|
||||
run: rm -rf /.cache
|
||||
- if: always()
|
||||
run: rm -rf ${{ github.worksspace }}
|
50
.forgejo/workflows/update-flake-lock.yml
Normal file
50
.forgejo/workflows/update-flake-lock.yml
Normal file
|
@ -0,0 +1,50 @@
|
|||
name: update-flake-lock
|
||||
run-name: ${{ github.actor }} - update-flake-lock
|
||||
on:
|
||||
shcedule:
|
||||
- cron: '*/10 * * * *'
|
||||
jobs:
|
||||
update-flake-lock:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: alpine:edge
|
||||
steps:
|
||||
- name: "Setup Runner"
|
||||
run: |
|
||||
apk update
|
||||
apk add git nodejs nix --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.forgejo
|
||||
home-manager
|
||||
lib
|
||||
nixos
|
||||
flake.lock
|
||||
flake.nix
|
||||
shell.nix
|
||||
- name: "Directory Structure"
|
||||
run: |
|
||||
ls ${{ github.workspace }}/*
|
||||
- name: "Runner: Node Info"
|
||||
run: |
|
||||
id
|
||||
uname -a
|
||||
hostname
|
||||
cat /etc/os-release
|
||||
- name: "Nix Version"
|
||||
run: |
|
||||
nix --version
|
||||
- name: "Nix build"
|
||||
run: |
|
||||
echo "Running Nix Flake Update"
|
||||
cd /workspace/albert/nix
|
||||
nix --extra-experimental-features "nix-command flakes" \
|
||||
flake update
|
||||
echo "Git Diff:"
|
||||
git diff
|
||||
|
||||
- if: always()
|
||||
run: rm -rf /.cache
|
||||
- if: always()
|
||||
run: rm -rf ${{ github.worksspace }}
|
Loading…
Add table
Reference in a new issue