Add WF
This commit is contained in:
18
.github/workflows/build-and-push.yml
vendored
Normal file
18
.github/workflows/build-and-push.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user