mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-09-22 10:50:18 -04:00
update build
This commit is contained in:
parent
78fdc56214
commit
d373904d2d
@ -18,8 +18,8 @@ go:
|
||||
|
||||
script:
|
||||
# TODO: Bring this back: - fgt golint
|
||||
# - make test
|
||||
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags "-X main.buildCommit `git describe --long --tags --dirty --always`" ./cmd/ssh-chat
|
||||
- make test
|
||||
- make build
|
||||
- ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
|
||||
- cp ~/.ssh/id_rsa id_rsa
|
||||
- docker build -t "$DOCKER_USER"/ssh-chat:latest .
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/bash -ex
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags "-X main.buildCommit `git describe --long --tags --dirty --always`" ./cmd/ssh-chat
|
||||
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USER" -p="$DOCKER_PASS"
|
||||
docker push $DOCKER_USER/ssh-chat:latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user