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 bffa537 commit 7cbc5d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ jobs:
file_name: .env
fail_on_empty: false

- 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/bases/app/${{ matrix.stage }}
file_name: .env
fail_on_empty: false

- name: "Deploy NestJS to AKS"
run: |
echo ${{ env.IMAGE_NAME }}
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/environments/dev/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ACR_NAME=nestjsmysqlaksdevacr.azurecr.io
IMAGE_NAME=nestjs-app:latest

0 comments on commit 7cbc5d7

Please sign in to comment.