This commit is contained in:
21
.drone.yml
21
.drone.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user