Skip to content

Bump docker/login-action from 3.1.0 to 3.2.0 #16

Bump docker/login-action from 3.1.0 to 3.2.0

Bump docker/login-action from 3.1.0 to 3.2.0 #16

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
workflow_call:
inputs:
goos:
type: string
goarch:
type: string
go:
type: string
permissions:
contents: read
env:
CGO_ENABLED: 0
GOOS: ${{ inputs.goos || 'linux' }}
GOARCH: ${{ inputs.goarch || 'amd64' }}
jobs:
build:
name: Build caddy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go || '~1.22.1' }}
- name: Build Caddy
run: |
GOOS=$GOOS GOARCH=$GOARCH go build \
-o "caddy-$GOOS-$GOARCH"
- if: env.GOOS == 'linux' && env.GOARCH == 'amd64'
name: Show build info
run: |
./caddy-$GOOS-$GOARCH build-info
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: caddy-${{ env.GOOS }}-${{ env.GOARCH }}
path: caddy-${{ env.GOOS }}-${{ env.GOARCH }}