Skip to content

Commit

Permalink
Nothing to see here
Browse files Browse the repository at this point in the history
  • Loading branch information
IRus committed Aug 14, 2023
0 parents commit 7efd7cb
Show file tree
Hide file tree
Showing 357 changed files with 6,019 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VIPASSANA_SERVER_RESOURCES=./frontend/dist
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patreon: heapyhop
85 changes: 85 additions & 0 deletions .github/workflows/build.yml
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 }}
13 changes: 13 additions & 0 deletions .gitignore
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
4 changes: 4 additions & 0 deletions Dockerfile
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
Loading

0 comments on commit 7efd7cb

Please sign in to comment.