Se agregan daemon_dns para poder resolver los dominios de nuget desde los contenedores de despliegue.
This commit is contained in:
		
							
								
								
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -9,19 +9,6 @@ trigger: | ||||
|   - push | ||||
|  | ||||
| steps: | ||||
| # --- PASO DE DEPURACIÓN AÑADIDO --- | ||||
| - name: debug-network | ||||
|   image: alpine:latest | ||||
|   commands: | ||||
|     - echo "--- Network Interfaces ---" | ||||
|     - ip addr show | ||||
|     - echo "--- DNS Configuration ---" | ||||
|     - cat /etc/resolv.conf | ||||
|     - echo "--- Testing Connectivity ---" | ||||
|     - ping -c 4 1.1.1.1 | ||||
|     - ping -c 4 api.nuget.org | ||||
|     - echo "--- End of Debug ---" | ||||
|  | ||||
| - name: build-and-publish-backend | ||||
|   image: plugins/docker | ||||
|   settings: | ||||
| @@ -37,8 +24,9 @@ steps: | ||||
|       - latest | ||||
|       - ${DRONE_COMMIT_SHA:0:8} | ||||
|     insecure: true | ||||
|   depends_on: # Hacemos que dependa del paso de debug para que corra después | ||||
|     - debug-network | ||||
|     daemon_dns: | ||||
|       - 1.1.1.1 | ||||
|       - 8.8.8.8 | ||||
|  | ||||
| - name: build-and-publish-frontend | ||||
|   image: plugins/docker | ||||
| @@ -55,6 +43,9 @@ steps: | ||||
|       - latest | ||||
|       - ${DRONE_COMMIT_SHA:0:8} | ||||
|     insecure: true | ||||
|     daemon_dns: | ||||
|       - 1.1.1.1 | ||||
|       - 8.8.8.8 | ||||
|   depends_on: | ||||
|     - build-and-publish-backend | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user