action-images/.gitea/workflows/publish_java_bookworm.yml
Louis Vallat 680b9bc714
feat: added java on bookworm image
Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
2024-09-08 17:36:25 +02:00

37 lines
941 B
YAML

name: "Build and publish \"Java default JDK on Bookworm\" image"
defaults:
run:
shell: sh
on:
push:
branches:
- master
paths:
- java-bookworm/**
jobs:
publish-image:
name: "Build and publish"
runs-on: alpine
steps:
- name: Install dependencies
run: apk add git docker
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.louis-vallat.dev
username: louis
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./java-bookworm
file: ./java-bookworm/Dockerfile
platforms: |
linux/amd64
push: true
tags: |
git.louis-vallat.dev/louis/action-images:java-bookworm