Skip to content

Commit

Permalink
Merge pull request #60 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 b78d42b + c981f9d commit 233a13e
Showing 1 changed file with 37 additions and 29 deletions.
66 changes: 37 additions & 29 deletions .github/workflows/SubirDockerfile.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,44 @@
name: Subir Dockerfile

on:
push:
branches:
- main
push:
branches:
- main

jobs:
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: "frontend"
ENVIROMENT: ${{ github.ref == 'refs/heads/main' && 'production' || 'develop' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Subir Docker
uses: stemdo-labs/final-project-exercise-ValentinoSanchez00/.github/workflows/SubirDockerfiles.yaml@main
with:
MICROSERVICE: "frontend"
ENVIROMENT: ${{ github.ref == 'refs/heads/main' && 'production' || 'develop' }}
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 }}

flujoCD:
runs-on: ubuntu-latest
needs: subirDocker
uses: ./.github/workflows/principal.yaml
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 }}"
HARBOR_PASSWORD: "${{ secrets.HARBOR_PASSWORD }}"
with:
MICROSERVICE: "frontend"
VERSION_CHART: "0.2.1"
ENVIROMENT: ${{ github.ref == 'refs/heads/main' && 'production' || 'develop' }}





steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Implementar flujo CD
uses: ./.github/workflows/principal.yaml
with:
MICROSERVICE: "frontend"
VERSION_CHART: "0.2.1"
ENVIROMENT: ${{ github.ref == 'refs/heads/main' && 'production' || 'develop' }}
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 }}
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}

0 comments on commit 233a13e

Please sign in to comment.