-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/proximax-storage/xpx-cata…
- Loading branch information
Showing
24 changed files
with
52 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM scratch | ||
FROM golang:1.12.7-stretch | ||
|
||
WORKDIR /faucet | ||
# copy required files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,28 +16,6 @@ pipeline { | |
} | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
// | ||
withCredentials([sshUserPrivateKey(credentialsId: 'github-proximax', keyFileVariable: 'SSH_KEY_ID')]) { | ||
// writeFile file: '/root/.ssh/id_ed25519', text: $SSH_KEY_FOR_SHINNENG'registry=https://nexus.internal.proximax.io/repository/npm-group/\n@scope:registry=https://nexus.internal.proximax.io/repository/npm-private/\[email protected]\nalways-auth=true\n_auth=' + env.nexusAuth + '\n' | ||
// with docker image go:alpine | ||
withDockerContainer(image: 'golang:1.12.7-stretch', args: '-u root -v ${SSH_KEY_ID}:/root/.ssh/id_rsa') { | ||
sh ''' | ||
apk update && apk upgrade && apk add --no-cache bash git openssh | ||
git config --global url.ssh://[email protected]/.insteadOf https://github.com/ | ||
echo "StrictHostKeyChecking no" > /root/.ssh/config | ||
chmod 400 /root/.ssh/id_rsa | ||
go get -d | ||
go get github.com/gin-contrib/gzip | ||
cd cmd | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w' -o server.run | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Build and Publish Release Image'){ | ||
steps { | ||
echo 'Build and Publish Image' | ||
|
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
dist/img/icon-wallet-name-red-16h-proximax-sirius-faucet.df9958eb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.