-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7efd7cb
Showing
357 changed files
with
6,019 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VIPASSANA_SERVER_RESOURCES=./frontend/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
patreon: heapyhop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: "Build" | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
check: | ||
if: ${{ github.event_name == 'pull_request' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- run: yarn install --check-cache | ||
working-directory: frontend | ||
build-backend: | ||
name: "Build Backend Application" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: "17" | ||
distribution: "zulu" | ||
- run: ./gradlew check distTar | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: "Backend Application" | ||
path: "build/distributions/backend.tar" | ||
retention-days: 1 | ||
build-frontend: | ||
name: "Build Frontend Application" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14.x" | ||
- working-directory: frontend | ||
run: yarn install | ||
- working-directory: frontend | ||
run: yarn run build | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: "Frontend Application" | ||
path: "frontend/dist/" | ||
retention-days: 1 | ||
build-and-push-backend-image: | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-backend | ||
- build-frontend | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: "Backend Application" | ||
path: "build/distributions/" | ||
- name: "Untar files" | ||
run: mkdir -p build/install && tar -xvf build/distributions/backend.tar -C $_ | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: "Frontend Application" | ||
path: "frontend/dist/" | ||
- name: "Set up QEMU" | ||
uses: docker/setup-qemu-action@v1 | ||
- name: "Set up Docker Buildx" | ||
uses: docker/setup-buildx-action@v1 | ||
- name: "Login to GHCR" | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: "Build and push" | ||
uses: docker/build-push-action@v2 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: . | ||
push: true | ||
tags: | | ||
ghcr.io/heapy/vipassana:main | ||
ghcr.io/heapy/vipassana:b${{ github.run_number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Intellij Idea | ||
/.idea/ | ||
out/ | ||
*.iml | ||
*.iws | ||
*.ipr | ||
|
||
# Gradle | ||
.gradle | ||
build/ | ||
|
||
# Project | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM bellsoft/liberica-openjre-alpine:17 | ||
COPY /build/install/backend /backend | ||
COPY /frontend/dist /frontend | ||
ENTRYPOINT /backend/bin/backend |
Oops, something went wrong.