Skip to content

Commit f9776e2

Browse files
committed
add workflow
1 parent 22a3465 commit f9776e2

File tree

3 files changed

+57
-2
lines changed

3 files changed

+57
-2
lines changed

.github/workflows/go.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Go
2+
3+
on:
4+
create:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: 1.16
21+
22+
- name: Get dependencies
23+
run: |
24+
go get -v -t -d ./...
25+
if [ -f Gopkg.toml ]; then
26+
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
27+
dep ensure
28+
fi
29+
30+
- name: Run GoReleaser
31+
uses: goreleaser/goreleaser-action@v2
32+
with:
33+
version: latest
34+
args: release --skip-validate --rm-dist --debug
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Generate the CA certificate and private key.
2222
cfssl gencert -initca ca-csr.json | cfssljson -bare ca
2323
```
2424

25-
Generate a server cert using the CSR provided. You can change hostname as you want the client connect to.
25+
Generate a server cert using the CSR provided. You can change hostname as you want the client connect to (in this case, `localhost`)
2626

2727
```
2828
cfssl gencert \
@@ -80,7 +80,7 @@ Client ---> encryptor (port 10000) -> decryptor (port 10001) -> Server (port 100
8080

8181
Like this diagram, represent the real-world use case for this program
8282

83-
![Alt text](/screenshot/securedlink.png?raw=true "Successful test")
83+
![Alt text](/screenshot/securedlink.png?raw=true "Secured link")
8484

8585
# Screenshots
8686

goreleaser.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
builds:
2+
-
3+
id: "mtlstcpproxy"
4+
flags:
5+
- -v
6+
ldflags:
7+
- -s -w -extldflags '-static'
8+
goarch:
9+
- amd64
10+
- 386
11+
goos:
12+
- linux
13+
env:
14+
- CGO_ENABLED=0
15+
skip: false
16+
archives:
17+
-
18+
format: binary
19+
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"

0 commit comments

Comments
 (0)