-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (40 loc) · 1.05 KB
/
java-gradle.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
name: Build Java (gradle)
on:
push:
branches:
- main
paths:
- "java-gradle/**"
- ".github/workflows/java-gradle.yaml"
- "install_tooling.sh"
workflow_call:
env:
REGISTRY: ghcr.io
IMAGE_REPO: loft-sh/devspace-containers/java-gradle
defaults:
run:
working-directory: java-gradle
jobs:
java-gradle:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- tag: 7-jdk17-slim
- tag: 7-jdk11-slim
- tag: 7-jdk8-slim
# - tag: 6-jdk17-slim
# - tag: 6-jdk11-slim
# - tag: 6-jdk8-slim
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: loft-sh/setup-devspace@main
- run: devspace build --var TAG=${{ matrix.tag }}