Skip to content

Commit

Permalink
Added variables
Browse files Browse the repository at this point in the history
  • Loading branch information
leomozzer committed May 25, 2023
1 parent 1c17865 commit 749b6a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ jobs:
id: install-kubectl
uses: azure/setup-kubectl@v3

- name: "Deploy NestJS to AKS"
run: |
cd ./kubernetes/bases/app
kustomize edit set image app-imag=${{ env.ACR_NAME }}/${{ env.IMAGE_NAME }}
cd ..
kubectl apply -f ./app/
kubectl get nodes
env:
ACR_NAME: ${{ steps.myGetSecretAction.outputs.acrLoginServer }}
IMAGE_NAME: "nestjs-app:latest"
# - name: "Deploy NestJS to AKS"
# run: |
# cd ./kubernetes/bases/app
# kustomize edit set image app-imag=${{ env.ACR_NAME }}/${{ env.IMAGE_NAME }}
# cd ..
# kubectl apply -f ./app/
# kubectl get nodes
# env:
# ACR_NAME: ${{ steps.myGetSecretAction.outputs.acrLoginServer }}
# IMAGE_NAME: "nestjs-app:latest"

- name: "Deploy NestJS to AKS"
run: |
Expand Down
8 changes: 1 addition & 7 deletions kubernetes/bases/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,4 @@ resources:
configMapGenerator:
- name: nestjs-config-map
envs:
- .env

# images:
# - name: "app-image"
# newName: "nestjs-app"
# newTag: "initial"
# namespace: "nestjs"
- .env

0 comments on commit 749b6a0

Please sign in to comment.