JRE container build automation
This commit is contained in:
parent
83bf7b79aa
commit
02ab723e3a
3 changed files with 42 additions and 3 deletions
39
.forgejo/workflows/build-push-jre-alpine.yml
Normal file
39
.forgejo/workflows/build-push-jre-alpine.yml
Normal 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 }}
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
RUN apk add --no-cache openjdk21-jre-headless
|
|
||||||
3
server/buildenv-jre-alpine/Containerfile
Normal file
3
server/buildenv-jre-alpine/Containerfile
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
FROM alpine:3.20
|
||||||
|
|
||||||
|
RUN apk add --no-cache openjdk21-jre-headless rcon
|
||||||
Loading…
Add table
Add a link
Reference in a new issue