Compare commits

...

3 commits

Author SHA1 Message Date
Harald Hoyer d9d76faffa 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.
2024-06-27 15:52:10 +02:00
Harald Hoyer 5a5f282f72 Merge remote-tracking branch 'origin/main' 2024-06-27 15:48:41 +02:00
Harald Hoyer ca3c611075 fix: modify docker load command in nix.yaml workflow
- Change the docker load command to include -i flag which specifies the input file from which to load the image/archive. This corrects the formation of the IMAGE_TAG.
2024-06-27 15:32:40 +02:00

View file

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