fixup! Add version file for crane push
Some checks failed
Build image / build-image (push) Failing after 3m2s

This commit is contained in:
Paul Brinkmeier 2025-04-23 13:32:22 +02:00
parent b91ab5d603
commit f86c94ae99

View File

@ -12,17 +12,17 @@ jobs:
uses: cachix/install-nix-action@v31 uses: cachix/install-nix-action@v31
with: with:
enable_kvm: false enable_kvm: false
- name: Get image name
run: nix build .#image-name -o image-name
- name: Build image - name: Build image
run: nix build .#image run: nix build .#image -o image.tar.gz
- run: ls -l - run: ls -l
- run: ls -l $(readlink -f result) - run: ls -l $(readlink -f image.tar.gz)
- name: Install crane - name: Install crane
run: | 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 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 tar -zxvf go-containerregistry.tar.gz -C /usr/local/bin/ crane
- name: Get image name
run: nix build .#image-name -o image-name
- run: echo $(cat image-name) - run: echo $(cat image-name)
- run: crane push result $(cat image-name) - run: crane push image.tar.gz $(cat image-name)