feat: add diagnostic commands to nix workflow
Some checks failed
/ build (push) Has been cancelled

In the nix workflow, several diagnostic commands are added prior to the docker login attempt. This includes echoing the $PATH, checking the docker location with 'which', and listing /bin directory's contents. These are intended to troubleshoot potential issues in the continuous integration environment.
This commit is contained in:
Harald Hoyer 2024-06-27 15:52:10 +02:00
parent 5a5f282f72
commit d9d76faffa

View file

@ -7,6 +7,9 @@ jobs:
- run: nix build -L .#runner
- name: upload image
run: |
echo $PATH
which docker
ls -al /bin
docker login -u ${{ secrets.REG_USER }} -p ${{ secrets.REG_TOKEN }} ${{ secrets.CI_REGISTRY }}
export IMAGE_TAG=$(docker load -i result | grep -Po 'Loaded image.*: \K.*')
echo "Pushing image ${IMAGE_TAG}"