vrnp/.gitea/workflows/build-container.yml
Paul Brinkmeier 0b6b3a021b
All checks were successful
Build image / build-image (push) Successful in 5m16s
Try using catthehacker/ubuntu container
2025-04-23 14:00:56 +02:00

23 lines
626 B
YAML

name: Build image
on: [push]
jobs:
build-image:
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- run: ls -l
- run: apt-get update && apt-get install -y sudo
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
enable_kvm: false
- name: Build image
run: nix build .#image -o image.tar.gz
- name: Get image name
run: nix build .#image-name -o image-name
- run: ls -l
- run: ls -l $(readlink -f image.tar.gz)
- run: docker load < image.tar.gz