Disabled CGO
This commit is contained in:
parent
d489dd744c
commit
b765a88f27
|
@ -15,6 +15,7 @@ steps:
|
||||||
path: /drone/src/build
|
path: /drone/src/build
|
||||||
environment:
|
environment:
|
||||||
APIURL: https://api.quenten.nl/api/testing
|
APIURL: https://api.quenten.nl/api/testing
|
||||||
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
- mkdir ./build/web
|
- mkdir ./build/web
|
||||||
- GOARCH=wasm GOOS=js go build -o ./build/web/app.wasm -ldflags="-X 'main.ApiURL=$APIURL'" ./src
|
- GOARCH=wasm GOOS=js go build -o ./build/web/app.wasm -ldflags="-X 'main.ApiURL=$APIURL'" ./src
|
||||||
|
@ -25,6 +26,7 @@ steps:
|
||||||
path: /drone/src/build
|
path: /drone/src/build
|
||||||
environment:
|
environment:
|
||||||
APIURL: https://api.quenten.nl/api/testing
|
APIURL: https://api.quenten.nl/api/testing
|
||||||
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
- go build -o ./build/app -ldflags="-X 'main.ApiURL=$APIURL'" ./src
|
- go build -o ./build/app -ldflags="-X 'main.ApiURL=$APIURL'" ./src
|
||||||
- name: build-publish-image
|
- name: build-publish-image
|
||||||
|
@ -96,6 +98,7 @@ steps:
|
||||||
path: /drone/src/build
|
path: /drone/src/build
|
||||||
environment:
|
environment:
|
||||||
APIURL: https://api.quenten.nl/api
|
APIURL: https://api.quenten.nl/api
|
||||||
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
- mkdir ./build/web
|
- mkdir ./build/web
|
||||||
- GOARCH=wasm GOOS=js go build -o ./build/web/app.wasm -ldflags="-X 'main.ApiURL=$APIURL'" ./src
|
- GOARCH=wasm GOOS=js go build -o ./build/web/app.wasm -ldflags="-X 'main.ApiURL=$APIURL'" ./src
|
||||||
|
@ -106,6 +109,7 @@ steps:
|
||||||
path: /drone/src/build
|
path: /drone/src/build
|
||||||
environment:
|
environment:
|
||||||
APIURL: https://api.quenten.nl/api
|
APIURL: https://api.quenten.nl/api
|
||||||
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
- go build -o ./build/app -ldflags="-X 'main.ApiURL=$APIURL'" ./src
|
- go build -o ./build/app -ldflags="-X 'main.ApiURL=$APIURL'" ./src
|
||||||
- name: build-publish-image
|
- name: build-publish-image
|
||||||
|
|
Loading…
Reference in New Issue