Skip to content

Commit 041f5bd

Browse files
committed
build and upload gateway-agent asset
1 parent 44fc4f8 commit 041f5bd

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/master.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ jobs:
2323
release_name: Release ${{ steps.set_version.outputs.version }}
2424
draft: false
2525
prerelease: true
26-
- name: upload binary
27-
id: upload-release
26+
- name: upload apiserver binary
2827
uses: actions/[email protected]
2928
env:
3029
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -33,3 +32,12 @@ jobs:
3332
asset_path: ./bin/apiserver
3433
asset_name: apiserver-${{ steps.set_version.outputs.version }}
3534
asset_content_type: application/octet-stream
35+
- name: upload gateway-agent binary
36+
uses: actions/[email protected]
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
upload_url: ${{ steps.create_release.outputs.upload_url }}
41+
asset_path: ./bin/gateway-agent
42+
asset_name: gateway-agent-${{ steps.set_version.outputs.version }}
43+
asset_content_type: application/octet-stream

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ alpine:
77

88
linux:
99
GOOS=linux GOARCH=amd64 go build -o bin/apiserver cmd/apiserver/main.go
10+
GOOS=linux GOARCH=amd64 go build -o bin/gateway-agent cmd/gateway-agent/main.go
1011

1112
local-apiserver:
1213
go run ./cmd/apiserver/main.go --db-connection-uri=${DB_CONNECTION_URI} || echo "forget to export DB_CONNECTION_URL=<DSN> ?"

0 commit comments

Comments
 (0)