Merge pull request #240 from groggemans/fix/GH-239

fix: armv7 docker builds
This commit is contained in:
Kubernetes Prow Robot 2021-11-01 18:28:59 -07:00 committed by GitHub
commit 96d13a56e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -12,10 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
ARG ARCH=amd64
FROM k8s.gcr.io/build-image/debian-base:buster-v1.6.0
# Architecture for bin folder
ARG ARCH
# Copy nfsplugin from build _output directory
COPY bin/${ARCH}/nfsplugin /nfsplugin

View File

@ -100,7 +100,7 @@ nfs:
.PHONY: nfs-armv7
nfs-armv7:
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -mod vendor -o bin/arm/v7/nfsplugin ./cmd/nfsplugin
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -mod vendor -o bin/arm/v7/nfsplugin ./cmd/nfsplugin
.PHONY: container-build
container-build: