vrnp/.gitea/workflows/build-container.yml
2025-04-23 17:22:50 +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