Add task and trunk
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
45f0a2dd15
commit
e7cd6c5dd1
@ -1,9 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install protoc
|
||||
if [[ ! -x /go/bin/protoc-gen-micro ]]; then
|
||||
cd /tmp
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
|
||||
go install github.com/go-micro/generator/cmd/protoc-gen-micro@v1.0.0
|
||||
fi
|
||||
|
||||
# Install task
|
||||
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /go/bin
|
||||
|
||||
# Install trunk
|
||||
pushd /go/bin
|
||||
curl -LO https://trunk.io/releases/trunk
|
||||
chmod +x trunk
|
||||
popd
|
||||
|
||||
exec "$@"
|
Loading…
Reference in New Issue