Skip to content

Commit

Permalink
Added make env
Browse files Browse the repository at this point in the history
  • Loading branch information
leomozzer committed May 26, 2023
1 parent 749b6a0 commit bffa537
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,21 @@ jobs:
# ACR_NAME: ${{ steps.myGetSecretAction.outputs.acrLoginServer }}
# IMAGE_NAME: "nestjs-app:latest"

- name: Make envfile
uses: SpicyPizza/create-envfile@v1.3
with:
envkey_ACR_NAME: ${{ steps.myGetSecretAction.outputs.acrLoginServer }}
envkey_IMAGE_NAME: "nestjs-app:latest"
directory: ./kubernetes/environments/${{ matrix.stage }}
file_name: .env
fail_on_empty: false

- name: "Deploy NestJS to AKS"
run: |
echo ${{ env.IMAGE_NAME }}
echo ${{ env.ACR_NAME }}
cd ./kubernetes/environments/${{ matrix.stage }}
ACR_NAME=${{ env.ACR_NAME }} IMAGE_NAME=${{ env.IMAGE_NAME }} kubectl kustomize .
kubectl kustomize .
kubectl apply -k ../../bases/app/
env:
ACR_NAME: ${{ steps.myGetSecretAction.outputs.acrLoginServer }}
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/environments/dev/.env

This file was deleted.

0 comments on commit bffa537

Please sign in to comment.