sql updates
This commit is contained in:
48
.drone.yml
48
.drone.yml
@@ -3,6 +3,24 @@ type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: restore-cache-with-filesystem
|
||||
image: meltwater/drone-cache
|
||||
pull: true
|
||||
settings:
|
||||
backend: "filesystem"
|
||||
#debug: true
|
||||
restore: true
|
||||
cache_key: '{{ .Repo.Name }}_{{ arch }}_{{ os }}'
|
||||
archive_format: "tar"
|
||||
filesystem_cache_root: "/go"
|
||||
local_root: /
|
||||
mount:
|
||||
- pkg.mod
|
||||
- pkg.build
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /go
|
||||
|
||||
- name: build
|
||||
image: golang
|
||||
environment:
|
||||
@@ -14,8 +32,8 @@ steps:
|
||||
path: /shared
|
||||
commands:
|
||||
#- cp /shared/index.html ./www/
|
||||
- go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
|
||||
- sqlc generate
|
||||
#- go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
|
||||
#- sqlc generate
|
||||
- chmod +x .drone.sh
|
||||
- ./.drone.sh
|
||||
|
||||
@@ -35,9 +53,29 @@ steps:
|
||||
overwrite: true
|
||||
verbose: true
|
||||
|
||||
- name: rebuild-cache-with-filesystem
|
||||
image: meltwater/drone-cache
|
||||
pull: true
|
||||
#when:
|
||||
# event:
|
||||
# - tag
|
||||
settings:
|
||||
backend: "filesystem"
|
||||
#debug: true
|
||||
rebuild: true
|
||||
cache_key: '{{ .Repo.Name }}_{{ arch }}_{{ os }}'
|
||||
archive_format: "tar"
|
||||
filesystem_cache_root: "/go"
|
||||
mount:
|
||||
- pkg.mod
|
||||
- pkg.build
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /go
|
||||
|
||||
volumes:
|
||||
- name: shared
|
||||
temp: {}
|
||||
#- name: cache
|
||||
# host:
|
||||
# path: /var/lib/cache
|
||||
- name: cache
|
||||
host:
|
||||
path: /var/lib/cache
|
Reference in New Issue
Block a user