action-env/.forgejo/workflows/build.yml
Vitaliy Potyarkin 2c81b0f450 Build container images in Forgejo Actions
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-10-24 16:59:47 +03:00

25 lines
581 B
YAML

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}