Build container images in Forgejo Actions

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
Vitaliy Potyarkin 2024-10-24 16:53:11 +03:00
parent 0218d0fe68
commit 2c81b0f450

View file

@ -0,0 +1,25 @@
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: build-${{matrix.tag}}
runs-on: docker
container: node:22-bullseye
strategy:
matrix:
tag:
- openjdk-11-maven-3.8.6
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: apt update; apt install -y buildah
- run: make ${{matrix.tag}}
- run: make ${{matrix.tag}} PUSH=y
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
env:
REGISTRY_PASSWORD: ${secrets.REGISTRY_PASSWORD}