JRE container build automation

This commit is contained in:
anonoe 2025-09-08 20:53:09 +02:00
parent 83bf7b79aa
commit 02ab723e3a
Signed by: anonoe
SSH key fingerprint: SHA256:c7f28FyVXvIXSVjAXp9azN9lKg+khKjVegKYeXHP/Ho
3 changed files with 42 additions and 3 deletions

View file

@ -0,0 +1,39 @@
on:
push:
branches:
- 'main'
tags:
- 'jre-alpine*.**/v**'
paths:
- 'server/buildenv-jre-alpine'
schedule:
- cron: '0 0 1-31 1-12 1'
jobs:
build_push:
runs-on: ubuntu-latest
steps:
-
name: Checkout Repository
uses: actions/checkout@v5
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
git.nanody.de/anonoe/jre-alpine
tags: |
type=semver,pattern={{raw}}/{{commit_date 'YYYYMMDD-HHmmss' tz='Europe/Berlin'}}
type=semver,pattern={{version}},match=v(\d.\d.\d)$
type=semver,pattern={{major}}.{{minor}},match=v(\d.\d.\d)$
type=semver,pattern={{major}},match=v(\d.\d.\d)$
-
name: Build and push jre-alpine
uses: docker/build-push-action@v6
with:
context: ./server/buildenv-jre-alpine/
file: ./server/buildenv-jre-alpine/Containerfile
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}