Switch to jo-micro/builder
continuous-integration/drone Build is failing
Details
continuous-integration/drone Build is failing
Details
parent
9d0db41476
commit
c1ed28b9cd
@ -1,20 +0,0 @@
|
||||
FROM registry.fk.jochum.dev/docker_hub_cache/library/golang:1.19
|
||||
|
||||
# Install packages
|
||||
RUN apt-get update --allow-releaseinfo-change && \
|
||||
apt-get --no-install-recommends --no-install-suggests --yes --quiet install \
|
||||
git-core ca-certificates make wget unzip && \
|
||||
cd /tmp && wget https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip && \
|
||||
unzip protoc-21.5-linux-x86_64.zip -d /usr/local/ && chmod +x /usr/local/bin/protoc
|
||||
|
||||
VOLUME [ "/code", "/go" ]
|
||||
|
||||
# RUN go mod download
|
||||
ENV GOPATH="/go"
|
||||
|
||||
# Install protoc-gen-go + protoc-gen-micro
|
||||
RUN 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
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
COPY ./scripts /scripts
|
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
find . -name '*.proto' -print0 | xargs -0 -I {} /bin/sh -c 'cd $(dirname $1); PATH=$PATH:/go/bin protoc --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename $1)' '_' '{}'
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
go mod tidy -go=1.19
|
||||
|
||||
for i in $(find . -name 'main.go'); do
|
||||
pushd $(dirname $i)
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go get -installsuffix cgo -ldflags="-w -s" -u ./...
|
||||
popd
|
||||
done
|
Loading…
Reference in New Issue