-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (39 loc) · 1.16 KB
/
deploy.yml
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
# Build and deploy to ghcr.io
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Build and Deploy
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'arm64'
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 8
cache: maven
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Maven
run: mvn -N --ntp -V -e -B -C io.takari:maven:wrapper -Dmaven=3.8.1
- name: Build with Maven
run: ./mvnw -V -e -B -C -Pit clean verify
- name: Build and Deploy Site with Maven
run: ./mvnw -V -e -B -C -Psite,site-deploy site -Doci.repo.prefix=ghcr.io/${{ github.repository }}/