Compare commits
	
		
			1 Commits
		
	
	
		
			master
			...
			93258e9746
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 93258e9746 | 
@@ -10,6 +10,8 @@ jobs:
 | 
				
			|||||||
    runs-on: ubuntu-22.04
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					      - name: Install jq
 | 
				
			||||||
 | 
					        run: apt-get update -y && apt-get install -y jq
 | 
				
			||||||
      - uses: cachix/install-nix-action@v23
 | 
					      - uses: cachix/install-nix-action@v23
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          # Gitea will supply a token in GITHUB_TOKEN, which this action will
 | 
					          # Gitea will supply a token in GITHUB_TOKEN, which this action will
 | 
				
			||||||
@@ -18,16 +20,19 @@ jobs:
 | 
				
			|||||||
          extra_nix_config: |
 | 
					          extra_nix_config: |
 | 
				
			||||||
            # Make sure we're using sandbox
 | 
					            # Make sure we're using sandbox
 | 
				
			||||||
            sandbox-fallback = false
 | 
					            sandbox-fallback = false
 | 
				
			||||||
      - name: Fix Nix path
 | 
					      - name: Set up attic
 | 
				
			||||||
        run: ln -s $(which nix) /usr/local/bin/nix
 | 
					        run: |
 | 
				
			||||||
      - uses: DeterminateSystems/magic-nix-cache-action@main
 | 
					          nix run .#nixpkgs.mine.x86_64-linux.attic-client -- \
 | 
				
			||||||
        env:
 | 
					            login --set-default colony https://nix-cache.nul.ie "${{ secrets.NIX_CACHE_TOKEN }}"
 | 
				
			||||||
          # Arch is amd64 in Gitea actions, this forms the download path for the cache
 | 
					          nix run .#nixpkgs.mine.x86_64-linux.attic-client -- use main
 | 
				
			||||||
          RUNNER_ARCH: X64
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Write agenix secrets key to file
 | 
					      - name: Write agenix secrets key to file
 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
          KEY: ${{ secrets.AGENIX_SECRETS_KEY }}
 | 
					          KEY: ${{ secrets.AGENIX_SECRETS_KEY }}
 | 
				
			||||||
        run: printf "$KEY" > .keys/ci.key
 | 
					        run: printf "$KEY" > .keys/ci.key
 | 
				
			||||||
      - name: Check flake
 | 
					      # - name: Check flake
 | 
				
			||||||
        run: nix flake check
 | 
					      #   run: nix flake check
 | 
				
			||||||
 | 
					      - name: Push to cache
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          path=$(nix build --no-link .#nixosConfigurations.middleman.config.system.build.toplevel --json | jq -r .[0].outputs.out)
 | 
				
			||||||
 | 
					          attic push main $path
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user