mirror of
				https://gitea.com/docker/build-push-action.git
				synced 2025-10-31 00:58:18 +07:00 
			
		
		
		
	Merge pull request #1294 from crazy-max/fix-e2e
ci(e2e): fix setup docker config
This commit is contained in:
		
						commit
						594bf46f0f
					
				
							
								
								
									
										3
									
								
								.github/workflows/.e2e-run.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/.e2e-run.yml
									
									
									
									
										vendored
									
									
								
							| @ -65,10 +65,11 @@ jobs: | |||||||
|         if: inputs.type == 'local' |         if: inputs.type == 'local' | ||||||
|         run: | |         run: | | ||||||
|           if [ ! -e /etc/docker/daemon.json ]; then |           if [ ! -e /etc/docker/daemon.json ]; then | ||||||
|             echo '{}' | tee /etc/docker/daemon.json >/dev/null |             echo '{}' | sudo tee /etc/docker/daemon.json >/dev/null | ||||||
|           fi |           fi | ||||||
|           DOCKERD_CONFIG=$(jq '.+{"insecure-registries":["http://${{ env.REGISTRY_FQDN }}"]}' /etc/docker/daemon.json) |           DOCKERD_CONFIG=$(jq '.+{"insecure-registries":["http://${{ env.REGISTRY_FQDN }}"]}' /etc/docker/daemon.json) | ||||||
|           sudo tee /etc/docker/daemon.json <<<"$DOCKERD_CONFIG" >/dev/null |           sudo tee /etc/docker/daemon.json <<<"$DOCKERD_CONFIG" >/dev/null | ||||||
|  |           cat /etc/docker/daemon.json | ||||||
|           sudo service docker restart |           sudo service docker restart | ||||||
|       - |       - | ||||||
|         name: Install ${{ inputs.name }} |         name: Install ${{ inputs.name }} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user