action-env/.forgejo/workflows/build.yml

26 lines
581 B
YAML
Raw Normal View History

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}