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