Skip to content

Commit

Permalink
Merge pull request #48 from stemdo-labs/develop
Browse files Browse the repository at this point in the history
flujo cd
  • Loading branch information
ValentinoSanchez00 authored Dec 9, 2024
2 parents 68c339f + 3de0baf commit 2141939
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 18 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/SubirDockerfile.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
name: Subir Dockerfile
on:
workflow_dispatch:
inputs:
MICROSERVICE:
description: 'Nombre del microservicio'
required: true
default: 'frontend'
push:
branches:
- main

jobs:
subirDocker:
uses: stemdo-labs/final-project-exercise-ValentinoSanchez00/.github/workflows/SubirDockerfiles.yaml@main
secrets:
ARM_CLIENT_ID: "${{ secrets.ARM_CLIENT_ID }}"
ARM_CLIENT_SECRET: "${{ secrets.ARM_CLIENT_SECRET }}"
ARM_TENANT_ID: "${{ secrets.ARM_TENANT_ID }}"
ARM_SUBSCRIPTION_ID: "${{ secrets.ARM_SUBSCRIPTION_ID }}"
with:
MICROSERVICE: "${{ inputs.MICROSERVICE }}" # Nombre del microservicio



runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Ejecutar flujo reutilizable
uses: stemdo-labs/final-project-exercise-ValentinoSanchez00/.github/workflows/SubirDockerfiles.yaml@main
with:
MICROSERVICE: "frontend"
env:
ARM_CLIENT_ID: "${{ secrets.ARM_CLIENT_ID }}"
ARM_CLIENT_SECRET: "${{ secrets.ARM_CLIENT_SECRET }}"
ARM_TENANT_ID: "${{ secrets.ARM_TENANT_ID }}"
ARM_SUBSCRIPTION_ID: "${{ secrets.ARM_SUBSCRIPTION_ID }}"
relizarCD:
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Ejecutar flujo reutilizable
uses: ./.github/workflows/principal.yaml
with:
MICROSERVICE: "frontend"
VERSION_CHART: "0.2.1"
env:
ARM_CLIENT_ID: "${{ secrets.ARM_CLIENT_ID }}"
ARM_CLIENT_SECRET: "${{ secrets.ARM_CLIENT_SECRET }}"
ARM_TENANT_ID: "${{ secrets.ARM_TENANT_ID }}"

4 changes: 3 additions & 1 deletion .github/workflows/principal.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: CD
on:
workflow_dispatch:
workflow_call:
inputs:
VERSION_CHART:
type: string
description: 'Versión del Chart'
required: true
MICROSERVICE:
type: string
description: 'Nombre del microservicio'
required: true
default: 'frontend'
Expand Down

0 comments on commit 2141939

Please sign in to comment.