Build container images in Forgejo Actions
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
0218d0fe68
commit
2c81b0f450
1 changed files with 25 additions and 0 deletions
25
.forgejo/workflows/build.yml
Normal file
25
.forgejo/workflows/build.yml
Normal 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}
|
Loading…
Add table
Reference in a new issue