From 1e9be2f17460ef6852c1c99202e820897e481483 Mon Sep 17 00:00:00 2001 From: Rachid F Date: Fri, 29 Dec 2023 23:57:14 +0100 Subject: [PATCH] :rocket: Build and push Backend (API) Build and push Backend (API) --- .github/workflows/sh-build-push-docker.yml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/sh-build-push-docker.yml b/.github/workflows/sh-build-push-docker.yml index 9df33bc59..6492d88db 100644 --- a/.github/workflows/sh-build-push-docker.yml +++ b/.github/workflows/sh-build-push-docker.yml @@ -49,4 +49,31 @@ jobs: 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 }} + \ No newline at end of file