We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27f80e8 + cfb47fa commit 61196c9Copy full SHA for 61196c9
.github/workflows/build.yaml
@@ -24,13 +24,19 @@ jobs:
24
uses: docker/metadata-action@v5
25
with:
26
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
31
- name: Build and push
32
uses: docker/build-push-action@v5
33
34
push: ${{ github.event_name != 'pull_request' }}
35
platforms: linux/amd64,linux/arm64
36
tags: ${{ steps.meta.outputs.tags }}
37
labels: ${{ steps.meta.outputs.labels }}
38
+ build-args: |
39
+ CADDY_VERSION=${{ steps.caddy_version.outputs.version }}
40
- name: Send Webhook Notification
41
if: always()
42
env:
0 commit comments