Skip to content

Commit

Permalink
drone: set CGO_ENABLED=0 on build
Browse files Browse the repository at this point in the history
Related to #51.
  • Loading branch information
fsouza committed Jul 22, 2019
1 parent f64879d commit 7426348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions drone/.drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ local build(go_version) = {
name: 'build',
image: 'golang:%(go_version)s' % { go_version: go_version },
commands: ['go build -o fake-gcs-server -mod readonly'],
environment: { CGO_ENABLED: '0' },
depends_on: ['mod-download'],
};

Expand Down
6 changes: 6 additions & 0 deletions drone/.drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ steps:
image: golang:1.12.7
commands:
- go build -o fake-gcs-server -mod readonly
environment:
CGO_ENABLED: 0
depends_on:
- mod-download

Expand Down Expand Up @@ -141,6 +143,8 @@ steps:
image: golang:1.11.12
commands:
- go build -o fake-gcs-server -mod readonly
environment:
CGO_ENABLED: 0
depends_on:
- mod-download

Expand Down Expand Up @@ -197,6 +201,8 @@ steps:
image: golang:1.13beta1
commands:
- go build -o fake-gcs-server -mod readonly
environment:
CGO_ENABLED: 0
depends_on:
- mod-download

Expand Down

0 comments on commit 7426348

Please sign in to comment.