add rpm generation code
Some checks failed
continuous-integration/drone/push Build was killed

This commit is contained in:
2026-01-13 20:09:19 +11:00
parent a81613a8c2
commit 3ceba1a117
22 changed files with 388 additions and 290 deletions

View File

@@ -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