Nuevo test
This commit is contained in:
		
							
								
								
									
										16
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -4,9 +4,9 @@ name: Build y Deploy | |||||||
|  |  | ||||||
| trigger: | trigger: | ||||||
|   branch: |   branch: | ||||||
|   - main |     - main | ||||||
|   event: |   event: | ||||||
|   - push |     - push | ||||||
|  |  | ||||||
| steps: | steps: | ||||||
| - name: build-and-publish-backend | - name: build-and-publish-backend | ||||||
| @@ -14,7 +14,8 @@ steps: | |||||||
|   settings: |   settings: | ||||||
|     registry: |     registry: | ||||||
|       from_secret: REGISTRY_URL |       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: |     username: | ||||||
|       from_secret: GITEA_USER |       from_secret: GITEA_USER | ||||||
|     password: |     password: | ||||||
| @@ -22,14 +23,16 @@ steps: | |||||||
|     dockerfile: Backend/GestionIntegral.Api/Dockerfile |     dockerfile: Backend/GestionIntegral.Api/Dockerfile | ||||||
|     tags: |     tags: | ||||||
|       - latest |       - 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 | - name: build-and-publish-frontend | ||||||
|   image: plugins/docker |   image: plugins/docker | ||||||
|   settings: |   settings: | ||||||
|     registry: |     registry: | ||||||
|       from_secret: REGISTRY_URL |       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: |     username: | ||||||
|       from_secret: GITEA_USER |       from_secret: GITEA_USER | ||||||
|     password: |     password: | ||||||
| @@ -37,7 +40,8 @@ steps: | |||||||
|     dockerfile: Frontend/Dockerfile |     dockerfile: Frontend/Dockerfile | ||||||
|     tags: |     tags: | ||||||
|       - latest |       - 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: |   depends_on: | ||||||
|     - build-and-publish-backend |     - build-and-publish-backend | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user