File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 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}"
You can’t perform that action at this time.
0 commit comments