Skip to content

Commit 61196c9

Browse files
committed
Merge branch 'develop'
2 parents 27f80e8 + cfb47fa commit 61196c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@ jobs:
2424
uses: docker/metadata-action@v5
2525
with:
2626
images: jumager/caddy
27+
- name: Set caddy version
28+
id: caddy_version
29+
run: |
30+
if test ${{ github.ref_name }} == develop; then echo "::set-output name=version::master"; else echo "::set-output name=version::latest"; fi
2731
- name: Build and push
2832
uses: docker/build-push-action@v5
2933
with:
3034
push: ${{ github.event_name != 'pull_request' }}
3135
platforms: linux/amd64,linux/arm64
3236
tags: ${{ steps.meta.outputs.tags }}
3337
labels: ${{ steps.meta.outputs.labels }}
38+
build-args: |
39+
CADDY_VERSION=${{ steps.caddy_version.outputs.version }}
3440
- name: Send Webhook Notification
3541
if: always()
3642
env:

0 commit comments

Comments
 (0)