Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
devyin7 committed Aug 6, 2019
2 parents edb873b + 77ef6ed commit ca5e355
Show file tree
Hide file tree
Showing 24 changed files with 52 additions and 69 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
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
Expand Down
22 changes: 0 additions & 22 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Binary file modified cmd/server.run
Binary file not shown.
1 change: 1 addition & 0 deletions dist/css/FaucetGet-vue.200292df.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/css/FaucetGet-vue.245e0397.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/css/app.09f1ef15.css

This file was deleted.

1 change: 1 addition & 0 deletions dist/css/app.87008a11.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ca5e355

Please sign in to comment.