Files
docker-caddy-test/.gitea/workflows/test-caddy-version.yml
2026-02-11 16:18:06 +05:30

19 lines
447 B
YAML

name: Build and Push Docker Image
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
name: Parse Caddy version
id: version
run: |
VERSION=$(grep -Eo 'caddy:[0-9]+\.[0-9]+\.[0-9]+$' Dockerfile | cut -d ':' -f2)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version from file: $VERSION"