Skip to content

Commit

Permalink
cambiando al acr
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinoSanchez00 committed Dec 10, 2024
1 parent 1821eb3 commit c4e16f7
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/SubirChart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
description: 'Nombre del microservicio'
required: true
default: 'frontend'
VERSION_CHART:
description: 'Versión del Chart'
required: true
jobs:
subirCharts:
uses: stemdo-labs/final-project-exercise-ValentinoSanchez00/.github/workflows/SubirCharts.yaml@main
Expand All @@ -21,4 +18,4 @@ jobs:
ARM_SUBSCRIPTION_ID: "${{ secrets.ARM_SUBSCRIPTION_ID }}"
with:
MICROSERVICE: "${{ inputs.MICROSERVICE }}"
VERSION_CHART: "${{ inputs.VERSION_CHART }}"

4 changes: 2 additions & 2 deletions .github/workflows/principal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ jobs:
- name: Desempaquetar el chart
if: inputs.ENVIROMENT == 'develop'
run: |
helm upgrade --install develop ${NAME_CHART}-${VERSION_CHART}.tgz --namespace ns-vsanchez -f values.yaml
helm upgrade --install develop ${NAME_CHART}-${VERSION_CHART}.tgz --namespace ns-vsanchez -f valuesdev.yaml
env:
NAME_CHART: chart-${{ inputs.MICROSERVICE }}
VERSION_CHART: ${{ inputs.VERSION_CHART }}

- name: Desempaquetar el chart
if: inputs.ENVIROMENT == 'production'
run: |
helm upgrade --install production ${NAME_CHART}-${VERSION_CHART}.tgz --namespace ns-vsanchez -f values.yaml
helm upgrade --install production ${NAME_CHART}-${VERSION_CHART}.tgz --namespace ns-vsanchez -f valuesprod.yaml
env:
NAME_CHART: chart-${{ inputs.MICROSERVICE }}
VERSION_CHART: ${{ inputs.VERSION_CHART }}
Expand Down
23 changes: 23 additions & 0 deletions valuesdev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

frontend:
replicas: 2
image: containerregistryvsanchez.azurecr.io/imagen-proyecto-frontend:0.1.2
containerPort: 80
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "256Mi"
cpu: "500m"
service:
port: 80
type: LoadBalancer

ingress:
enabled: false
host: frontend
annotations:
path: /
tls: true
tlsSecretName: example-tls-secret
8 changes: 8 additions & 0 deletions values.yaml → valuesprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ frontend:
service:
port: 80
type: LoadBalancer

ingress:
enabled: true
host: frontend
annotations:
path: /
tls: true
tlsSecretName: example-tls-secret

0 comments on commit c4e16f7

Please sign in to comment.