mirror of
				https://github.com/TomWright/dasel.git
				synced 2022-05-22 02:32:45 +03:00 
			
		
		
		
	Perform basic checks on built docker images
This commit is contained in:
		
							
								
								
									
										5
									
								
								.github/workflows/build-dev.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/build-dev.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -73,6 +73,11 @@ jobs: | ||||
|         run: | | ||||
|           docker build --build-arg daselpath=target/release/${{ matrix.artifact_name }} -f docker/Dockerfile -t tomwright/dasel:latest . | ||||
|           docker build --build-arg daselpath=target/release/${{ matrix.artifact_name }} -f docker/alpine.Dockerfile -t tomwright/dasel:alpine . | ||||
|       - name: Test docker image | ||||
|         if: matrix.build_docker == true | ||||
|         run: | | ||||
|           echo '{"hello": "World"}' | docker run -i --rm tomwright/dasel:latest -p json '.hello' | ||||
|           echo '{"hello": "World"}' | docker run -i --rm tomwright/dasel:alpine -p json '.hello' | ||||
|       - name: Docker login | ||||
|         if: matrix.build_docker == true | ||||
|         run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u TomWright --password-stdin | ||||
|   | ||||
							
								
								
									
										5
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -91,6 +91,11 @@ jobs: | ||||
|         run: | | ||||
|           docker build --build-arg daselpath=target/release/${{ matrix.artifact_name }} -f docker/Dockerfile -t tomwright/dasel:latest . | ||||
|           docker build --build-arg daselpath=target/release/${{ matrix.artifact_name }} -f docker/alpine.Dockerfile -t tomwright/dasel:alpine . | ||||
|       - name: Test docker image | ||||
|         if: matrix.build_docker == true | ||||
|         run: | | ||||
|           echo '{"hello": "World"}' | docker run -i --rm tomwright/dasel:latest -p json '.hello' | ||||
|           echo '{"hello": "World"}' | docker run -i --rm tomwright/dasel:alpine -p json '.hello' | ||||
|       - name: Docker login | ||||
|         if: matrix.build_docker == true | ||||
|         run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u TomWright --password-stdin | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tom Wright
					Tom Wright