All checks were successful
Build and publish release / build-docker (push) Successful in 4s
33 lines
869 B
YAML
33 lines
869 B
YAML
name: Build and publish release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: '*/15 * * * *'
|
|
|
|
jobs:
|
|
build-docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Maven
|
|
run: |
|
|
version=$(curl -s https://hub.spigotmc.org/versions/ | \
|
|
grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.json' | \
|
|
sort -V | \
|
|
tail -n 1 | \
|
|
sed 's/\.json$//')
|
|
echo "version=$version"
|
|
|
|
docker_version=$(curl -s https://git.tulisiowice.top/Tulis/-/packages/container/tulibuilder/versions | \
|
|
grep -oE 'v[0-9]+\.[0-9]+\.[0-9]' | \
|
|
sort -V | \
|
|
tail -n 1 | sed 's/^v//')
|
|
echo "docker_version=$docker_version"
|
|
- name: Download Java 21
|
|
run: |
|
|
echo $version |