Skip to content

Commit

Permalink
Use CGO_ENABLED=0 when building plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sternik committed Jan 5, 2024
1 parent f745bcc commit cd1c1ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.17.1'
go-version: '^1.20'
- run: |
make build VERSION=v${{ needs.release.outputs.version }} GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }}
zip -r -j terraform-provider-imagefactory_${{ needs.release.outputs.version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip bin/*
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ default: install
.ONESHELL:
build:
$(eval V := $(shell echo ${VERSION} | tr -d 'v'))
GOOS=${GOOS} GOARCH=${GOARCH} go build -ldflags '$(LDFLAGS)' -o ./bin/${BINARY}_${VERSION}
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build -ldflags '$(LDFLAGS)' -o ./bin/${BINARY}_${VERSION}
echo "mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/$(V)/${GOOS}_${GOARCH}" > ./bin/install.sh
echo "cp ${BINARY}_${VERSION} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/$(V)/${GOOS}_${GOARCH}/${BINARY}" >> ./bin/install.sh
chmod +x ./bin/install.sh
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ terraform {
required_providers {
imagefactory = {
source = "nordcloud/imagefactory"
version = "1.8.3"
version = "1.8.4"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
imagefactory = {
source = "nordcloud/imagefactory"
version = "1.8.3"
version = "1.8.4"
}
}
}
Expand Down

0 comments on commit cd1c1ff

Please sign in to comment.