Nuevo test
This commit is contained in:
		
							
								
								
									
										16
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -4,9 +4,9 @@ name: Build y Deploy | ||||
|  | ||||
| trigger: | ||||
|   branch: | ||||
|   - main | ||||
|     - main | ||||
|   event: | ||||
|   - push | ||||
|     - push | ||||
|  | ||||
| steps: | ||||
| - name: build-and-publish-backend | ||||
| @@ -14,7 +14,8 @@ steps: | ||||
|   settings: | ||||
|     registry: | ||||
|       from_secret: REGISTRY_URL | ||||
|     repo: ${{DRONE_REPO_OWNER}}/${{DRONE_REPO_NAME}}-backend | ||||
|     # Sintaxis corregida para la sustitución de variables | ||||
|     repo: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}-backend | ||||
|     username: | ||||
|       from_secret: GITEA_USER | ||||
|     password: | ||||
| @@ -22,14 +23,16 @@ steps: | ||||
|     dockerfile: Backend/GestionIntegral.Api/Dockerfile | ||||
|     tags: | ||||
|       - latest | ||||
|       - ${{DRONE_COMMIT_SHA:0:8}} | ||||
|       # Sintaxis corregida para obtener los primeros 8 caracteres del hash del commit | ||||
|       - ${DRONE_COMMIT_SHA:0:8} | ||||
|  | ||||
| - name: build-and-publish-frontend | ||||
|   image: plugins/docker | ||||
|   settings: | ||||
|     registry: | ||||
|       from_secret: REGISTRY_URL | ||||
|     repo: ${{DRONE_REPO_OWNER}}/${{DRONE_REPO_NAME}}-frontend | ||||
|     # Sintaxis corregida para la sustitución de variables | ||||
|     repo: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}-frontend | ||||
|     username: | ||||
|       from_secret: GITEA_USER | ||||
|     password: | ||||
| @@ -37,7 +40,8 @@ steps: | ||||
|     dockerfile: Frontend/Dockerfile | ||||
|     tags: | ||||
|       - latest | ||||
|       - ${{DRONE_COMMIT_SHA:0:8}} | ||||
|       # Sintaxis corregida para obtener los primeros 8 caracteres del hash del commit | ||||
|       - ${DRONE_COMMIT_SHA:0:8} | ||||
|   depends_on: | ||||
|     - build-and-publish-backend | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user