Skip to content

Commit 8edef3b

Browse files
committed
switch to go modules, autorelease
1 parent f42e8ed commit 8edef3b

File tree

5 files changed

+62
-21
lines changed

5 files changed

+62
-21
lines changed

.circleci/config.yml

-21
This file was deleted.

.github/workflows/release.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
tags:
4+
- "v*"
5+
name: CI
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out code
12+
uses: actions/checkout@master
13+
- name: goreleaser
14+
uses: docker://goreleaser/goreleaser:latest
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
args: release
19+
if: success()

.goreleaser.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
builds:
2+
- main: ./cmd/tcp-proxy
3+
binary: tcp-proxy
4+
env:
5+
- CGO_ENABLED=0
6+
goos:
7+
- linux
8+
- darwin
9+
- windows
10+
goarch:
11+
- 386
12+
- amd64
13+
- arm
14+
- arm64
15+
goarm:
16+
- 6
17+
- 7
18+
archives:
19+
- format: gz
20+
files:
21+
- none*
22+
changelog:
23+
sort: asc
24+
filters:
25+
exclude:
26+
- "^docs:"
27+
- "^test:"

go.mod

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/jpillora/go-tcp-proxy
2+
3+
go 1.13
4+
5+
require (
6+
github.com/mattn/go-colorable v0.1.4 // indirect
7+
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
8+
)

go.sum

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
2+
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
3+
github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=
4+
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
5+
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4=
6+
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
7+
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 h1:DH4skfRX4EBpamg7iV4ZlCpblAHI6s6TDM39bFZumv8=
8+
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

0 commit comments

Comments
 (0)