Skip to content

Commit 89d72a7

Browse files
committed
added manually triggered workflow for testing stuff
1 parent 5484d34 commit 89d72a7

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Manually triggered playground
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
IMAGE_NAME: ghcr.io/${{ github.repository }}
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout latest code
14+
uses: actions/checkout@v3
15+
with:
16+
ref: add-arm64-architecture
17+
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: 11
22+
distribution: 'zulu'
23+
24+
- name: Setup build cache
25+
uses: actions/cache@v3
26+
with:
27+
path: ~/.gradle/caches
28+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
29+
restore-keys: |
30+
${{ runner.os }}-gradle-
31+
32+
- name: Setup Gradle wrapper cache
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.gradle/wrapper
36+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
37+
restore-keys: |
38+
${{ runner.os }}-gradle-wrapper-
39+
40+
- name: Build JVM stuff
41+
run: ./gradlew build
42+
43+
- name: Build Docker images for amd64 and arm64
44+
# The GITHUB_REF tag comes in the format 'refs/tags/xxx'.
45+
# So if we split on '/' and take the 3rd value, we can get the release name.
46+
run: |
47+
NEW_VERSION=$(git rev-parse --short HEAD)
48+
IMAGE=${IMAGE_NAME}:${NEW_VERSION}
49+
echo "Building new version ${NEW_VERSION} of $IMAGE"
50+
./gradlew jibDockerBuild --image="${IMAGE}"

0 commit comments

Comments
 (0)