This commit is contained in:
2025-08-20 18:12:49 +05:30
parent 8e6e08a734
commit 6dac2fccbf

18
.github/workflows/build-and-push.yml vendored Normal file
View File

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