Skip to content

Merge pull request #703 from amuwal/fix-sync-onedrive/sharepoint #3

Merge pull request #703 from amuwal/fix-sync-onedrive/sharepoint

Merge pull request #703 from amuwal/fix-sync-onedrive/sharepoint #3

name: Export Docker Images (Frontend Dashboard Selfhosted)
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
ENVIRONMENT: SELF_HOSTED
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Frontend (Dashboard)
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
context: .
file: ./apps/webapp/Dockerfile
push: true
tags: panoradotdev/frontend-webapp:selfhosted
build-args: |
NEXT_PUBLIC_BACKEND_DOMAIN=${{ secrets.NEXT_PUBLIC_BACKEND_DOMAIN }}
NEXT_PUBLIC_MAGIC_LINK_DOMAIN=${{ secrets.NEXT_PUBLIC_MAGIC_LINK_DOMAIN }}
NEXT_PUBLIC_DISTRIBUTION=${{ env.DISTRIBUTION }}
NEXT_PUBLIC_REDIRECT_WEBHOOK_INGRESS=${{ env.NEXT_PUBLIC_REDIRECT_WEBHOOK_INGRESS }}
NEXT_PUBLIC_WEBAPP_DOMAIN= ${{env.NEXT_PUBLIC_WEBAPP_DOMAIN}}