feat: Rearrange nix workflow and add docker status check
Some checks failed
/ build (push) Failing after 13s
Some checks failed
/ build (push) Failing after 13s
- The docker status check has been added to check the docker service before a build. - The build command in the nix workflow has been moved after the docker status check for better error handling.
This commit is contained in:
parent
d9d76faffa
commit
016de513df
|
@ -4,12 +4,15 @@ jobs:
|
||||||
runs-on: nix
|
runs-on: nix
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: nix build -L .#runner
|
|
||||||
- name: upload image
|
- name: upload image
|
||||||
run: |
|
run: |
|
||||||
echo $PATH
|
echo $PATH
|
||||||
which docker
|
which docker
|
||||||
ls -al /bin
|
ls -al /bin
|
||||||
|
docker status
|
||||||
|
- run: nix build -L .#runner
|
||||||
|
- name: upload image
|
||||||
|
run: |
|
||||||
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 -i 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}"
|
||||||
|
|
Loading…
Reference in a new issue