From 0b6b3a021b1a91c358abf998034c42642e5d9405 Mon Sep 17 00:00:00 2001 From: Paul Brinkmeier Date: Wed, 23 Apr 2025 14:00:56 +0200 Subject: [PATCH] Try using catthehacker/ubuntu container --- .gitea/workflows/build-container.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/build-container.yml b/.gitea/workflows/build-container.yml index 4041ff4..80f8c71 100644 --- a/.gitea/workflows/build-container.yml +++ b/.gitea/workflows/build-container.yml @@ -2,7 +2,8 @@ name: Build image on: [push] jobs: build-image: - runs-on: ubuntu-22.04 + container: + image: catthehacker/ubuntu:act-latest steps: - name: Checkout repo uses: actions/checkout@v4 @@ -18,17 +19,4 @@ jobs: run: nix build .#image-name -o image-name - run: ls -l - run: ls -l $(readlink -f image.tar.gz) - - name: Install crane - run: | - curl -sL "https://github.com/google/go-containerregistry/releases/download/v0.20.3/go-containerregistry_Linux_x86_64.tar.gz" > go-containerregistry.tar.gz - tar -zxvf go-containerregistry.tar.gz -C /usr/local/bin/ crane - - - run: echo $(cat image-name) - - - run: tar tvf image.tar.gz - - run: echo $(readlink -f image.tar.gz) - - uses: actions/upload-artifact@v3 - with: - name: tarball - path: image.tar.gz - - run: crane push $(readlink -f image.tar.gz) $(cat image-name) + - run: docker load < image.tar.gz