Skip to content

Commit

Permalink
Merge pull request #1009 from hngprojects/feature/add-envs-for-kimiko
Browse files Browse the repository at this point in the history
chore: add extra envs for kimiko environments
  • Loading branch information
vicradon authored Aug 17, 2024
2 parents cbc7a66 + 31f786d commit dfb8e70
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/kimiko-csharp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types:
- completed

jobs:
jobs:
deploy_boilerplate_frontend:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -35,6 +35,11 @@ jobs:
action_output_file: ".env"
API_URL: ${{ vars.API_URL }}
NEXTAUTH_URL: ${{ vars.URL }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
TWITTER_CLIENT_ID: ${{ secrets.TWITTER_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
TWITTER_CLIENT_SECRET: ${{ secrets.TWITTER_CLIENT_SECRET }}
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}

- name: Copy Artifacts to server
uses: appleboy/[email protected]
Expand All @@ -55,4 +60,6 @@ jobs:
cd ~/deployments/hng_boilerplate_nextjs
tar -xzf boilerplate.tar.gz
rm -f boilerplate.tar.gz
git reset --hard
git pull origin dev
pm2 restart boilerplate-frontend --update-env
9 changes: 8 additions & 1 deletion .github/workflows/kimiko-golang-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types:
- completed

jobs:
jobs:
deploy_boilerplate_frontend:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -35,6 +35,11 @@ jobs:
action_output_file: ".env"
API_URL: ${{ vars.API_URL }}
NEXTAUTH_URL: ${{ vars.URL }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
TWITTER_CLIENT_ID: ${{ secrets.TWITTER_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
TWITTER_CLIENT_SECRET: ${{ secrets.TWITTER_CLIENT_SECRET }}
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}

- name: Copy Artifacts to server
uses: appleboy/[email protected]
Expand All @@ -55,4 +60,6 @@ jobs:
cd ~/deployments/hng_boilerplate_nextjs
tar -xzf boilerplate.tar.gz
rm -f boilerplate.tar.gz
git reset --hard
git pull origin dev
pm2 restart boilerplate-frontend --update-env

0 comments on commit dfb8e70

Please sign in to comment.