Skip to content

Commit

Permalink
caddy: create build definition
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssa committed Nov 30, 2024
1 parent d92a376 commit ba7d81e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/caddy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: build caddy
on:
push:
paths:
- .github/workflows/caddy.yml
- caddy.sh

jobs:
build:
runs-on: ubuntu-latest
container:
image: alpine:edge
env:
BUILDS_S3_ACCESS_KEY_ID: ${{ secrets.BUILDS_S3_ACCESS_KEY_ID }}
BUILDS_S3_SECRET_ACCESS_KEY: ${{ secrets.BUILDS_S3_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v1
- run: sh caddy.sh ${{ github.sha }}
10 changes: 10 additions & 0 deletions caddy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
. _functions.sh

apk add go

go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest

~/go/bin/xcaddy build \
--with github.com/gerolf-vent/caddy-vault-storage

upload ./caddy caddy

0 comments on commit ba7d81e

Please sign in to comment.