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 |   - push | ||||||
|  |  | ||||||
| steps: | 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 | - name: build-and-publish-backend | ||||||
|   image: plugins/docker |   image: plugins/docker | ||||||
|   settings: |   settings: | ||||||
| @@ -37,8 +24,9 @@ steps: | |||||||
|       - latest |       - latest | ||||||
|       - ${DRONE_COMMIT_SHA:0:8} |       - ${DRONE_COMMIT_SHA:0:8} | ||||||
|     insecure: true |     insecure: true | ||||||
|   depends_on: # Hacemos que dependa del paso de debug para que corra después |     daemon_dns: | ||||||
|     - debug-network |       - 1.1.1.1 | ||||||
|  |       - 8.8.8.8 | ||||||
|  |  | ||||||
| - name: build-and-publish-frontend | - name: build-and-publish-frontend | ||||||
|   image: plugins/docker |   image: plugins/docker | ||||||
| @@ -55,6 +43,9 @@ steps: | |||||||
|       - latest |       - latest | ||||||
|       - ${DRONE_COMMIT_SHA:0:8} |       - ${DRONE_COMMIT_SHA:0:8} | ||||||
|     insecure: true |     insecure: true | ||||||
|  |     daemon_dns: | ||||||
|  |       - 1.1.1.1 | ||||||
|  |       - 8.8.8.8 | ||||||
|   depends_on: |   depends_on: | ||||||
|     - build-and-publish-backend |     - build-and-publish-backend | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user