mirror of
https://github.com/LBRYFoundation/herald.go.git
synced 2025-09-30 15:10:33 +00:00
16 lines
349 B
Bash
Executable file
16 lines
349 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Get new tags from remote
|
|
git fetch --tags
|
|
|
|
# Get latest tag name
|
|
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
|
|
|
# Checkout latest tag
|
|
git checkout $latestTag
|
|
|
|
go build .
|
|
docker build . -t lbry/hub:latest
|
|
docker tag lbry/hub:latest lbry/hub:$latestTag
|
|
docker push lbry/hub:latest
|
|
docker push lbry/hub:$latestTag
|