diff --git a/.gitea/workflows/build-container.yml b/.gitea/workflows/build-container.yml index a001a16..3b1ae4e 100644 --- a/.gitea/workflows/build-container.yml +++ b/.gitea/workflows/build-container.yml @@ -7,15 +7,15 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - run: ls -l - - run: apt update && apt install sudo + - run: apt-get update && apt-get install -y sudo - name: Install Nix uses: cachix/install-nix-action@v31 with: enable_kvm: false - - name: Get image name - run: nix build .#image-name -o image-name - 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) - name: Install crane @@ -25,4 +25,6 @@ jobs: - run: echo $(cat image-name) - - run: crane push image.tar.gz $(cat image-name) + - run: tar tvf image.tar.gz + - run: echo $(readlink -f image.tar.gz) + - run: crane push $(readlink -f image.tar.gz) $(cat image-name)