Skip to content

Commit

Permalink
Fixed deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
leomozzer committed May 26, 2023
1 parent 46118a9 commit f86819e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
cd ./kubernetes/environments/${{ matrix.stage }}
kubectl kustomize .
kubectl apply -k ../../bases/app/
kubectl get services
kubectl set image deployment.apps/nestjs nestjs=${{ env.ACR_NAME }}/${{ env.IMAGE_NAME }}
env:
ACR_NAME: ${{ steps.myGetSecretAction.outputs.acrLoginServer }}
IMAGE_NAME: "nestjs-app:latest"
4 changes: 2 additions & 2 deletions kubernetes/bases/app/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: nestjs
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: nestjs
Expand All @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: nestjs
image: nestjsmysqlaksdevacr.azurecr.io/nestjs-app:latest #nestjs.azurecr.io/nestjs-app:latest
image: nestjs.azurecr.io/nestjs-app:latest
imagePullPolicy: IfNotPresent
resources:
limits:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/environments/dev/.env

This file was deleted.

0 comments on commit f86819e

Please sign in to comment.