From 31f786d2b010b75ce93eb63b72eb817d5cfdbe42 Mon Sep 17 00:00:00 2001 From: Osinachi Chukwujama Date: Sat, 17 Aug 2024 09:01:18 +0100 Subject: [PATCH] chore: add extra envs for kimiko environments --- .github/workflows/kimiko-csharp-deployment.yaml | 9 ++++++++- .github/workflows/kimiko-golang-deployment.yml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kimiko-csharp-deployment.yaml b/.github/workflows/kimiko-csharp-deployment.yaml index 262c86531..f29ae3357 100644 --- a/.github/workflows/kimiko-csharp-deployment.yaml +++ b/.github/workflows/kimiko-csharp-deployment.yaml @@ -7,7 +7,7 @@ on: types: - completed -jobs: +jobs: deploy_boilerplate_frontend: if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest @@ -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/scp-action@v0.1.7 @@ -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 diff --git a/.github/workflows/kimiko-golang-deployment.yml b/.github/workflows/kimiko-golang-deployment.yml index 9122f3f7d..78ab4a1bd 100644 --- a/.github/workflows/kimiko-golang-deployment.yml +++ b/.github/workflows/kimiko-golang-deployment.yml @@ -7,7 +7,7 @@ on: types: - completed -jobs: +jobs: deploy_boilerplate_frontend: if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest @@ -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/scp-action@v0.1.7 @@ -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