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.
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			732 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			732 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
on: [push]
 | 
						|
jobs:
 | 
						|
  build:
 | 
						|
    runs-on: nix
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v3
 | 
						|
      - name: upload image
 | 
						|
        run: |
 | 
						|
          echo $PATH
 | 
						|
          which docker
 | 
						|
          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 }}
 | 
						|
          export IMAGE_TAG=$(docker load -i result | grep -Po 'Loaded image.*: \K.*')
 | 
						|
          echo "Pushing image ${IMAGE_TAG}"
 | 
						|
          docker tag "${IMAGE_TAG}" "${{ secrets.CI_REGISTRY }}/${{ secrets.REG_USER }}/nix-runner:latest"
 | 
						|
          docker push "${{ secrets.CI_REGISTRY }}/${{ secrets.REG_USER }}/nix-runner:latest"
 |