This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -17,6 +17,7 @@ steps:
|
||||
mount:
|
||||
- pkg.mod
|
||||
- pkg.build
|
||||
- pkg.tools
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /go
|
||||
@@ -36,13 +37,27 @@ steps:
|
||||
- go install github.com/a-h/templ/cmd/templ@latest
|
||||
- go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
|
||||
- go install github.com/swaggo/swag/cmd/swag@latest
|
||||
- go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
|
||||
- sqlc generate
|
||||
- templ generate -path ./components
|
||||
- swag init --exclude "pkg.mod,pkg.build,pkg.tools" -o server/router/docs
|
||||
- chmod +x ./scripts/*.sh
|
||||
- ./scripts/update-swagger-ui.sh
|
||||
- ./scripts/drone.sh
|
||||
- cp ./build/cbs-linux-amd64 /shared/
|
||||
- cp ./build/vctp-linux-amd64 /shared/
|
||||
|
||||
- name: rpm
|
||||
image: ghcr.io/goreleaser/nfpm
|
||||
environment:
|
||||
TZ: UTC
|
||||
volumes:
|
||||
- name: shared
|
||||
path: /shared
|
||||
commands:
|
||||
- cp /shared/vctp-linux-amd64 ./build/vctp-linux-amd64
|
||||
#- find .
|
||||
- nfpm package --config vctp.yml --packager rpm --target ./build/
|
||||
- ls -lah ./build/
|
||||
|
||||
- name: dell-sftp-deploy
|
||||
image: hypervtechnics/drone-sftp
|
||||
@@ -76,6 +91,7 @@ steps:
|
||||
mount:
|
||||
- pkg.mod
|
||||
- pkg.build
|
||||
- pkg.tools
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /go
|
||||
|
||||
Reference in New Issue
Block a user