Compare commits
1 Commits
f333d19c9b
...
09aebbafb4
Author | SHA1 | Date | |
---|---|---|---|
09aebbafb4 |
@ -19,7 +19,7 @@ steps:
|
|||||||
image: golang:1.17.0-alpine3.14
|
image: golang:1.17.0-alpine3.14
|
||||||
commands:
|
commands:
|
||||||
- apk --no-cache add git
|
- apk --no-cache add git
|
||||||
- go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
|
- go get -tags 'postgres' -u github.com/golang-migrate/migrate/cmd/migrate@latest
|
||||||
- cp $$GOPATH/bin/migrate migrate
|
- cp $$GOPATH/bin/migrate migrate
|
||||||
- CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -trimpath -v -o canapeapp/app backend/*.go
|
- CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -trimpath -v -o canapeapp/app backend/*.go
|
||||||
|
|
||||||
|
6
dev.sh
6
dev.sh
@ -69,9 +69,9 @@ _ensure_command npm
|
|||||||
|
|
||||||
_check_command migrate || {
|
_check_command migrate || {
|
||||||
_log_info "Installing migrate"
|
_log_info "Installing migrate"
|
||||||
go install \
|
GO111MODULE=off \
|
||||||
-tags 'postgres' \
|
go get -tags 'postgres' \
|
||||||
github.com/golang-migrate/migrate/v4/cmd/migrate@latest
|
-u -v github.com/golang-migrate/migrate/cmd/migrate
|
||||||
}
|
}
|
||||||
|
|
||||||
_check_command fresh || {
|
_check_command fresh || {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user