Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Auto docker Build and push Frontend #207

Merged
merged 2 commits into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 42 additions & 2 deletions .github/workflows/sh-build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
- name: Build and push Frontend (Magic Links)
uses: docker/build-push-action@v2
with:
context: .
Expand All @@ -36,4 +36,44 @@ jobs:
tags: panoradotdev/frontend-magic-links:latest
build-args: |
VITE_BACKEND_DOMAIN=${{ secrets.VITE_BACKEND_DOMAIN }}
VITE_ML_FRONTEND_URL=${{ secrets.VITE_FRONTEND_DOMAIN }}
VITE_ML_FRONTEND_URL=${{ secrets.VITE_FRONTEND_DOMAIN }}

- name: Build and push Frontend (Dashboard)
uses: docker/build-push-action@v2
with:
context: .
file: ./apps/webapp/Dockerfile
push: true
tags: panoradotdev/frontend-webapp:latest
build-args: |
VITE_BACKEND_DOMAIN=${{ secrets.VITE_BACKEND_DOMAIN }}
VITE_FRONTEND_DOMAIN=${{ secrets.VITE_FRONTEND_DOMAIN }}

- name: Build and push Backend (API)
uses: docker/build-push-action@v2
with:
context: .
file: ./packages/api/Dockerfile
push: true
tags: panoradotdev/backend-api:latest
build-args: |
OAUTH_REDIRECT_BASE=${{ env.OAUTH_REDIRECT_BASE }}
DISTRIBUTION=${{ env.DISTRIBUTION }}
ENV=${{ ENV }}
DATABASE_URL=postgresql://${{env.POSTGRES_USER}}:${{secrets.POSTGRES_PASSWORD}}@${{env.POSTGRES_HOST}}:5432/${{env.POSTGRES_DB}}?ssl=false
JWT_SECRET=${{ secrets.JWT_SECRET }}
REDIS_HOST=redis
ENCRYPT_CRYPTO_SECRET_KEY=${{ secrets.ENCRYPT_CRYPTO_SECRET_KEY }}
HUBSPOT_CLIENT_ID=${{ secrets.HUBSPOT_CLIENT_ID }}
HUBSPOT_CLIENT_SECRET=${{ secrets.HUBSPOT_CLIENT_SECRET }}
ZOHOCRM_CLIENT_ID=${{ secrets.ZOHOCRM_CLIENT_ID }}
ZOHOCRM_CLIENT_SECRET=${{ secrets.ZOHOCRM_CLIENT_SECRET }}
PIPEDRIVE_CLIENT_ID=${{ secrets.PIPEDRIVE_CLIENT_ID }}
PIPEDRIVE_CLIENT_SECRET=${{ secrets.PIPEDRIVE_CLIENT_SECRET }}
ZENDESK_CLIENT_ID=${{ secrets.ZENDESK_CLIENT_ID }}
ZENDESK_CLIENT_SECRET=${{ secrets.ZENDESK_CLIENT_SECRET }}
ZENDESK_TICKETING_SUBDOMAIN=${{ secrets.ZENDESK_TICKETING_SUBDOMAIN }}
ZENDESK_TICKETING_CLIENT_ID=${{ secrets.ZENDESK_TICKETING_CLIENT_ID }}
ZENDESK_TICKETING_CLIENT_SECRET=${{ secrets.ZENDESK_TICKETING_CLIENT_SECRET }}


Loading