feat: add docker-build composite action and build template
Some checks failed
build / build (push) Failing after 2s
Some checks failed
build / build (push) Failing after 2s
This commit is contained in:
26
.gitea/workflows/build-template.yml
Normal file
26
.gitea/workflows/build-template.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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*"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: git.librete.ch/libretech/runner-image:v1
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: libreshop/actions/.gitea/actions/docker-build@main
|
||||
with:
|
||||
registry: ${{ secrets.REGISTRY }}
|
||||
registry_user: ${{ secrets.REGISTRY_USER }}
|
||||
registry_pass: ${{ secrets.REGISTRY_PASS }}
|
||||
publish: ${{ secrets.PUBLISH_ENABLED }}
|
||||
Reference in New Issue
Block a user