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.
1 parent ae81246 commit 52e25b5Copy full SHA for 52e25b5
.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 $CI_REF_NAME_SLUG == develop; then echo "::set-output name=version::master"; else echo "::set-output name=version::laest"; 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