30 lines
882 B
YAML
30 lines
882 B
YAML
# Example build.yml for a libreshop component repo.
|
|
# Copy to .gitea/workflows/build.yml and remove the "on:" override below.
|
|
#
|
|
# Replace the existing multi-step build.yml with these ~20 lines.
|
|
|
|
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags: ["v*"]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: git.librete.ch/public/runner-image:v0.1.0:9d1e204fe8e06b7d16cdc8da0c7077fa4171daef62099cc8c09993834e576ca5
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: https://git.librete.ch/public/actions/.gitea/actions/docker-build@main
|
|
with:
|
|
registry: ${{ secrets.REGISTRY }}
|
|
registry_user: ${{ secrets.REGISTRY_USER }}
|
|
registry_pass: ${{ secrets.REGISTRY_PASS }}
|
|
publish: ${{ github.event_name == 'push' && vars.PUBLISH_ENABLED == 'true' }}
|