Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Commit 55c133b

Browse files
committed
Build statically linked binaries
1 parent 0929e5f commit 55c133b

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
binaries:
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
token: ${{ secrets.API_GITHUB_TOKEN }}
17+
18+
- name: Setup Go environment
19+
uses: actions/[email protected]
20+
with:
21+
go-version: "1.16"
22+
23+
- name: Binaries Release
24+
uses: goreleaser/goreleaser-action@v2
25+
with:
26+
version: ~> 0.159
27+
args: release --rm-dist
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
before:
2+
builds:
3+
- env:
4+
- CGO_ENABLED=0
5+
ldflags:
6+
- -s -w
7+
dir: ./cmd/cloudflared
8+
goos:
9+
- linux
10+
- windows
11+
- darwin
12+
goarch:
13+
- 386
14+
- amd64
15+
- arm
16+
- arm64
17+
goarm:
18+
- 6
19+
- 7
20+
archives:
21+
- format: binary
22+
checksum:
23+
name_template: "checksums.txt"

0 commit comments

Comments
 (0)