-
Notifications
You must be signed in to change notification settings - Fork 54
67 lines (64 loc) · 1.76 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build
on:
workflow_run:
workflows: [Test]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Jar
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- uses: actions/setup-node@v4
with:
node-version: '23'
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Build Web
run: cd web && bun install --frozen-lockfile && bun pm untrusted && bun build && bash copy-build.sh
- name: Build with Gradle
run: ./gradlew :boot:bootjar
- name: Upload Jar
uses: actions/upload-artifact@v4
with:
name: boot
path: boot/build/libs/boot.jar
push:
name: Docker Push
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Download Jar
uses: actions/download-artifact@v4
with:
name: boot
path: boot/build/libs
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: boot/
platforms: linux/amd64,linux/arm64
push: true
tags: reajason/memshell-party:latest