1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
Cargo.nix linguist-generated
 | 
			
		||||
							
								
								
									
										695
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										695
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -61,20 +61,23 @@ jobs:
 | 
			
		||||
        CACHIX_AUTH_TOKEN: ((cachix.token))
 | 
			
		||||
      inputs:
 | 
			
		||||
      - name: repo
 | 
			
		||||
      outputs:
 | 
			
		||||
      - name: upload
 | 
			
		||||
      platform: linux
 | 
			
		||||
      run:
 | 
			
		||||
        path: sh
 | 
			
		||||
        args:
 | 
			
		||||
        - -c
 | 
			
		||||
        - |
 | 
			
		||||
          nix-env -iA nixpkgs.cachix
 | 
			
		||||
          nix-env -iA nixpkgs.cachix nixpkgs.gzip
 | 
			
		||||
          cachix use $CACHIX_NAME
 | 
			
		||||
          cachix watch-exec pain nix -- --extra-experimental-features "nix-command flakes" build ./repo
 | 
			
		||||
          nix --extra-experimental-features "nix-command flakes" build ./repo#image -o result
 | 
			
		||||
          nix-shell -p gzip --run "gzip -c  $(readlink result) > final"
 | 
			
		||||
          gzip -cd < $(readlink result) > ./upload/image.tar
 | 
			
		||||
  - put: image
 | 
			
		||||
    inputs: [upload]
 | 
			
		||||
    params:
 | 
			
		||||
      image: final
 | 
			
		||||
      image: upload/image.tar
 | 
			
		||||
  - put: nomad-job
 | 
			
		||||
    params:
 | 
			
		||||
      job_path: repo/singh3.nomad
 | 
			
		||||
 
 | 
			
		||||
@@ -43,7 +43,7 @@
 | 
			
		||||
                name = "singh3";
 | 
			
		||||
                tag = "latest";
 | 
			
		||||
                created = "now";
 | 
			
		||||
                contents = packages.default;
 | 
			
		||||
                contents = [ packages.default ];
 | 
			
		||||
                config.Cmd = [ "/bin/singh3" ];
 | 
			
		||||
              };
 | 
			
		||||
          };
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								singh3.nomad
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								singh3.nomad
									
									
									
									
									
								
							@@ -48,8 +48,8 @@ EOF
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      resources {
 | 
			
		||||
        cpu    = 256
 | 
			
		||||
        memory = 128
 | 
			
		||||
        cpu    = 128
 | 
			
		||||
        memory = 100
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -59,7 +59,11 @@ EOF
 | 
			
		||||
      config {
 | 
			
		||||
        image      = "natto17/singh3:latest"
 | 
			
		||||
        force_pull = true
 | 
			
		||||
        volumes = [ "/tmp:/tmp" ]
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      resources {
 | 
			
		||||
        cpu    = 128
 | 
			
		||||
        memory = 100
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      template {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user