nixos-runner/.forgejo/workflows/publish.yaml
Julian Stiller 3a2cc1d3d7
All checks were successful
build and publish containers / build (nixos, 24.11) (push) Successful in 3m51s
build and publish containers / build (nixos, unstable) (push) Successful in 4m50s
Actions: misc
* remove redundent step
* add missing sed to actions image
2025-02-11 00:41:22 +01:00

33 lines
831 B
YAML

name: build and publish containers
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * 1,3,5"
jobs:
build:
runs-on: nixos-latest
strategy: &strategy
matrix:
container: [ nixos ]
version: [ "24.11", "unstable" ]
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: 'main'
- name: nix package names
id: pkgs
run: |
echo "pkgs-name=${{ matrix.container }}-${{ matrix.version }}" | tr -d . >>"${GITHUB_OUTPUT}"
- name: build
uses: actions/nix/build@main
with:
package: ${{ steps.pkgs.outputs.pkgs-name }}
out-link: ${{ steps.pkgs.outputs.pkgs-name }}
- name: load image into podman
run: |
podman load < ${{ steps.pkgs.outputs.pkgs-name }}