v.0.0.1 Создан сервис клипов
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0e97e0c1bb
commit
210b39ba0d
@ -13,7 +13,7 @@ steps:
|
|||||||
- rm -fr /home/tailly_clips
|
- rm -fr /home/tailly_clips
|
||||||
- mkdir /home/tailly_clips
|
- mkdir /home/tailly_clips
|
||||||
- cd /home/tailly_clips
|
- cd /home/tailly_clips
|
||||||
- git clone https://admin:Xdv3ScZa0dPP0E9OgcJF@git.altomta.ru/admin/tailly_clips . || true
|
- git clone https://admin:2bfa8b81e8787c9c0bb89e1a7bbd929b2d63aaf2@git.altomta.ru/admin/tailly_clips . || true
|
||||||
- git pull
|
- git pull
|
||||||
- docker stop tailly_clips || true
|
- docker stop tailly_clips || true
|
||||||
- docker rm tailly_clips || true
|
- docker rm tailly_clips || true
|
||||||
|
|||||||
@ -15,13 +15,6 @@ RUN go mod download
|
|||||||
# Копируем исходный код
|
# Копируем исходный код
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Генерируем gRPC код
|
|
||||||
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
|
|
||||||
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
|
|
||||||
RUN protoc --go_out=./gen --go_opt=paths=source_relative \
|
|
||||||
--go-grpc_out=./gen --go-grpc_opt=paths=source_relative \
|
|
||||||
proto/clip.proto
|
|
||||||
|
|
||||||
# Собираем приложение
|
# Собираем приложение
|
||||||
RUN go build -o clip-service ./cmd/server
|
RUN go build -o clip-service ./cmd/server
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user