fix drone and sqlc generation
Some checks failed
continuous-integration/drone/push Build was killed

This commit is contained in:
2026-01-13 19:49:13 +11:00
parent ea1eeb5c21
commit a81613a8c2
28 changed files with 3718 additions and 288 deletions

View File

@@ -26,16 +26,23 @@ steps:
environment:
CGO_ENABLED: 0
GOMODCACHE: '/drone/src/pkg.mod'
GOCACHE: '/drone/src/pkg.build'
GOCACHE: '/drone/src/pkg.build'
GOBIN: '/drone/src/pkg.tools'
volumes:
- name: shared
path: /shared
commands:
#- cp /shared/index.html ./www/
#- go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
#- sqlc generate
- chmod +x .drone.sh
- ./.drone.sh
- export PATH=/drone/src/pkg.tools:$PATH
- 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
- 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/
- name: dell-sftp-deploy
image: hypervtechnics/drone-sftp
@@ -78,4 +85,4 @@ volumes:
temp: {}
- name: cache
host:
path: /var/lib/cache
path: /var/lib/cache