iFargle
bab7a1cf97
Some checks failed
build-linode-img / build-linode-img (push) Failing after 3h13m15s
48 lines
No EOL
1.1 KiB
YAML
48 lines
No EOL
1.1 KiB
YAML
name: build-linode-img
|
|
run-name: ${{ github.actor }} - build-linode-img
|
|
# on:
|
|
# schedule:
|
|
# - cron: '0 4 1,15 * *'
|
|
# # “At 02:00 on day-of-month 1 and 15.”
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-linode-img:
|
|
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
|
|
- 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 ${{ github.workspace }}/#imageConfigurations.nixos-linode-img
|
|
- name: "Results"
|
|
run: |
|
|
echo "Results:"
|
|
ls -lah result/*
|
|
|
|
- if: always()
|
|
run: rm -rf /.cache
|
|
- if: always()
|
|
run: rm -rf ${{ github.worksspace }} |