sql updates
Some checks are pending
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-13 09:25:12 +10:00
parent 3f2a67cf7b
commit f0278388cb
6 changed files with 209 additions and 26 deletions

View File

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