FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sourcegraph/cmd/github-proxy/build.sh at main · qedsoftware/sourcegraph · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
qedsoftware
/
sourcegraph
Public
forked from
sourcegraph/sourcegraph-public-snapshot
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sourcegraph
/
cmd
/
github-proxy
/
build.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
26 lines (21 loc) · 832 Bytes
Breadcrumbs
sourcegraph
/
cmd
/
github-proxy
/
build.sh
Copy path
File metadata and controls
executable file
·
26 lines (21 loc) · 832 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!
/usr/bin/env bash
#
We want to build multiple go binaries, so we use a custom build step on CI.
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
/../..
set
-ex
OUTPUT=
$(
mktemp -d -t sgdockerbuild_XXXXXXX
)
cleanup
() {
rm -rf
"
$OUTPUT
"
}
trap
cleanup EXIT
#
Environment for building linux binaries
export
GO111MODULE=on
export
GOARCH=amd64
export
GOOS=linux
export
CGO_ENABLED=0
pkg=
"
github.com/sourcegraph/sourcegraph/cmd/github-proxy
"
go build -trimpath -ldflags
"
-X github.com/sourcegraph/sourcegraph/internal/version.version=
$VERSION
-X github.com/sourcegraph/sourcegraph/internal/version.timestamp=
$(
date +%s
)
"
-buildmode exe -tags dist -o
"
$OUTPUT
/
$(
basename
$pkg
)
"
"
$pkg
"
docker build -f cmd/github-proxy/Dockerfile -t
"
$IMAGE
"
"
$OUTPUT
"
\
--progress=plain \
--build-arg COMMIT_SHA \
--build-arg DATE \
--build-arg VERSION
Back
|
FazBrowse Home
|
New Git URL