Skip to content

Commit

Permalink
Merge pull request #63 from mirzaazwad/dev
Browse files Browse the repository at this point in the history
Changes to CD
  • Loading branch information
mirzaazwad authored Nov 6, 2023
2 parents 5f85446 + e5004a4 commit 1b632fb
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up mongo url secret

run: echo "_MONGO_URI=${{ secrets._MONGO_URI }}" >> $GITHUB_ENV

- name: Set up node environment variables
run: echo "_NODE_ENV=${{ vars._NODE_ENV }}" >> $GITHUB_ENV

- name: Set up secrets
run: echo "_JWT_SECRET=${{ secrets._JWT_SECRET }}" >> $GITHUB_ENV

- name: Set up port
run: echo "_NODE_ENV=${{ vars._PORT }}" >> $GITHUB_ENV

- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v1'
Expand Down Expand Up @@ -59,8 +72,8 @@ jobs:
image: "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ github.sha }}"
flags: '--allow-unauthenticated'
env: |
_PORT=${{vars._PORT}}
_NODE_ENV=${{ vars._NODE_ENV }}
_PORT=${{env._PORT}}
_NODE_ENV=${{ env._NODE_ENV }}
_JWT_SECRET=${{ secrets._JWT_SECRET }}
_MONGO_URI=${{ secrets._MONGO_URI }}
_AUTH_TOKEN=${{secrets._AUTH_TOKEN}}
Expand Down

0 comments on commit 1b632fb

Please sign in to comment.