-
Notifications
You must be signed in to change notification settings - Fork 157
57 lines (54 loc) · 1.81 KB
/
rebuild.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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Rebuild
on:
schedule:
# 7am (UTC) each tuesday
# '*' is a special character in YAML so you have to quote this string
- cron: '0 7 * * TUE'
# allows the workflow to be manually executed any time
workflow_dispatch:
permissions:
packages: write
jobs:
ghcr:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11' ]
tag: [ '5.1.1' ]
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
ref: refs/tags/${{ matrix.tag }}
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Release
env:
BASE: origin/${{ github['base_ref'] }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
GPG_KEY_FILE: ${{ secrets.GPG_KEY_FILE }}
# fail-fast behavior is set when `shell: bash` is explicitly specified. It is not applied by default.
shell: bash
run: |
# set GITHUB_REF so we can use the same logic we use for our tag-push release
export GITHUB_REF=refs/tags/${{ matrix.tag }}
. build/release/global.sh
bash build/release/00_prep.sh
bash build/release/10_build.sh
bash build/release/20_test.sh
# go straight to the docker release instead of calling 30_release.sh
# which uploads the build artifacts to Sonatype OSSRH in the tag release workflow
bash build/release/bin/30_release/1_docker.sh
bash build/release/40_drop.sh