Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 2 additions & 11 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Development
name: Build Development Image

on:
push:
Expand All @@ -7,10 +7,9 @@ on:

env:
DOCKER_IMAGE: ${{ secrets.DOCKER_USERNAME }}/billilge-client
CAPROVER_APP: dev

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
environment: development

Expand Down Expand Up @@ -40,11 +39,3 @@ jobs:
${{ env.DOCKER_IMAGE }}:dev-${{ github.sha }}
cache-from: type=gha,scope=dev
cache-to: type=gha,mode=max,scope=dev

- name: Deploy to CapRover
uses: caprover/deploy-from-github@v1.1.2
with:
server: ${{ secrets.CAPROVER_SERVER }}
app: ${{ env.CAPROVER_APP }}
token: ${{ secrets.CAPROVER_DEV_APP_TOKEN }}
image: ${{ env.DOCKER_IMAGE }}:dev
12 changes: 4 additions & 8 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
DOCKER_IMAGE: ${{ secrets.DOCKER_USERNAME }}/billilge-client
CAPROVER_APP: www

jobs:
build-and-deploy:
Expand Down Expand Up @@ -42,10 +41,7 @@ jobs:
cache-from: type=gha,scope=prod
cache-to: type=gha,mode=max,scope=prod

- name: Deploy to CapRover
uses: caprover/deploy-from-github@v1.1.2
with:
server: ${{ secrets.CAPROVER_SERVER }}
app: ${{ env.CAPROVER_APP }}
token: ${{ secrets.CAPROVER_PROD_APP_TOKEN }}
image: ${{ env.DOCKER_IMAGE }}:prod
- name: Deploy to Coolify
run: |
curl --fail --request GET "${{ secrets.COOLIFY_URL }}/api/v1/deploy?uuid=${{ secrets.COOLIFY_UUID }}&force=true" \
--header "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}"
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const nextConfig = withPWA({
images: {
domains: [
'github.com',
'minio-api.billilge.site', // 파일서버 이미지 도메인 추가
'static.billilge.site', // 파일서버 이미지 도메인 추가
],
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; img-src 'self' data: https:;",
Expand Down
Loading
Loading