Skip to content

Commit

Permalink
Merge pull request #418 from panoratech/split-ci-actions
Browse files Browse the repository at this point in the history
Split ci actions
  • Loading branch information
rflihxyz authored May 5, 2024
2 parents 6fbbf23 + 826e932 commit c442b61
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Compile Docker Images (Frontend Selfhosted)
name: Compile Docker Images (Frontend Dashboard Selfhosted)

on:
pull_request:
Expand All @@ -18,18 +18,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push Frontend (Magic Links)
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
context: .
file: ./apps/magic-link/Dockerfile
push: false
tags: panoradotdev/frontend-magic-links:selfhosted
build-args: |
VITE_BACKEND_DOMAIN=${{ secrets.VITE_BACKEND_DOMAIN }}
- name: Build and push Frontend (Dashboard)
- name: Build Frontend (Dashboard)
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/docker.check-build.magiclinks.selfhosted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Compile Docker Images (Frontend Magiclinks Selfhosted)

on:
pull_request:
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: Build Frontend (Magic Links)
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
context: .
file: ./apps/magic-link/Dockerfile
push: false
tags: panoradotdev/frontend-magic-links:selfhosted
build-args: |
VITE_BACKEND_DOMAIN=${{ secrets.VITE_BACKEND_DOMAIN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Export Docker Images (Frontend Selfhosted)
name: Export Docker Images (Frontend Dashboard Selfhosted)

on:
push:
Expand All @@ -24,17 +24,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Frontend (Magic Links)
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
context: .
file: ./apps/magic-link/Dockerfile
push: true
tags: panoradotdev/frontend-magic-links:selfhosted
build-args: |
VITE_BACKEND_DOMAIN=${{ secrets.VITE_BACKEND_DOMAIN }}
- name: Build and push Frontend (Dashboard)
uses: docker/build-push-action@v2
with:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/docker.export.frontend-magiclinks.selfhosted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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 (Magic Links)
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
context: .
file: ./apps/magic-link/Dockerfile
push: true
tags: panoradotdev/frontend-magic-links:selfhosted
build-args: |
VITE_BACKEND_DOMAIN=${{ secrets.VITE_BACKEND_DOMAIN }}
2 changes: 1 addition & 1 deletion apps/client-ts/src/app/(Dashboard)/api-keys/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default function Page() {
<DialogHeader>
<DialogTitle>Create a new API key</DialogTitle>
<DialogDescription>
Keep your key safe. <br></br>Save and store this new key to a secure place, such as a password manager or secret store. You won't be able to see it again.
Keep your key safe. <br></br>Save and store this new key to a secure place, such as a password manager or secret store. You will not be able to see it again.
</DialogDescription>
</DialogHeader>

Expand Down
1 change: 0 additions & 1 deletion packages/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ RUN pnpm add -g turbo
COPY . .
RUN turbo prune api --docker

# resulat: full/, json/ pnpm-lock.yaml , pnpm-workspace.yaml
# =======================================================================
# Add lockfile and package.json's of isolated subworkspace
FROM base AS installer
Expand Down

0 comments on commit c442b61

Please sign in to comment.