5 Commits
v0.1.0 ... main

Author SHA1 Message Date
cfe37519bd fix(ci): correct image digest separator
All checks were successful
build / build (push) Successful in 1m6s
2026-04-30 12:20:40 +02:00
60ab9dcc23 ci: digest-pin runner-image v0.1.0
Some checks failed
build / build (push) Failing after 0s
2026-04-30 12:18:04 +02:00
4fe5b9043d ci: update runner-image path to public/ namespace
Some checks failed
build / build (push) Failing after 1s
2026-04-30 11:57:33 +02:00
f8d4c6a47d chore: update action ref to public/actions
All checks were successful
build / build (push) Successful in 1m28s
2026-04-29 22:51:08 +02:00
ed6771e03a chore: slim build.yml to use shared docker-build action (#1)
All checks were successful
build / build (push) Successful in 1m22s
2026-04-29 22:08:36 +02:00

View File

@@ -1,4 +1,4 @@
name: Build and publish
name: build
on:
push:
@@ -7,49 +7,18 @@ on:
pull_request:
branches: [main]
# Required secrets:
# REGISTRY git.librete.ch
# REGISTRY_USER libretech-bot
# REGISTRY_PASS bot PAT (write:package; bot is in libreshop Owners team)
# Required variable:
# PUBLISH_ENABLED "true" to actually push (off = build-only on PRs)
#
# Image: git.librete.ch/libreshop/shop
# main pushes → :main + :sha-<short>
# tag pushes → :<tag> + :latest
jobs:
build:
runs-on: ubuntu-latest
container:
image: git.librete.ch/libretech/runner-image:v1
image: git.librete.ch/public/runner-image:v0.1.0@sha256:9d1e204fe8e06b7d16cdc8da0c7077fa4171daef62099cc8c09993834e576ca5
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login (only when publishing)
if: ${{ vars.PUBLISH_ENABLED == 'true' }}
uses: docker/login-action@v3
- uses: https://git.librete.ch/public/actions/.gitea/actions/docker-build@main
with:
registry: ${{ secrets.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASS }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.REGISTRY }}/libreshop/shop
tags: |
type=ref,event=branch
type=ref,event=tag
type=sha,format=short
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
- uses: docker/build-push-action@v6
with:
context: .
push: ${{ vars.PUBLISH_ENABLED == 'true' && github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
registry_user: ${{ secrets.REGISTRY_USER }}
registry_pass: ${{ secrets.REGISTRY_PASS }}
publish: ${{ github.event_name == 'push' && vars.PUBLISH_ENABLED == 'true' }}