- Use Docker instead of buildah in composite action - Build workflows now run on docker-builder label - Add actionlint config for custom runner labels - Avoids nested containerization complexity in k8s Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
37 lines
958 B
YAML
37 lines
958 B
YAML
name: Build devpi
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'devpi-v*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version (e.g. v1.0.0)'
|
|
required: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker-builder
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Extract version from tag
|
|
id: version
|
|
run: |
|
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
VERSION="${{ github.event.inputs.version }}"
|
|
else
|
|
# Extract version from tag: devpi-v1.0.0 -> v1.0.0
|
|
VERSION="${GITHUB_REF_NAME#devpi-}"
|
|
fi
|
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
echo "Building version: $VERSION"
|
|
|
|
- name: Build and push
|
|
uses: ./.forgejo/actions/build-push-image
|
|
with:
|
|
context: argocd/manifests/devpi
|
|
image_name: blumeops/devpi
|
|
version: ${{ steps.version.outputs.version }}
|