Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 31ba055

Browse files
committed
Fix image build
1 parent 360a60a commit 31ba055

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.drone.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ steps:
3131
repo: packethost/cluster-api-provider-packet
3232
tags:
3333
- latest
34+
build_args:
35+
- GOVER=1.14.2-alpine3.11
3436

3537
- name: publish
3638
pull: always

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Build the manager binary
2-
FROM golang:1.13 as builder
2+
ARG GOVER=1.14
3+
FROM golang:${GOVER} as builder
34

45
WORKDIR /workspace
56
# Copy the Go Modules manifests
@@ -11,8 +12,7 @@ RUN go mod download
1112

1213
# Copy the go source
1314
COPY main.go main.go
14-
COPY api/ api/
15-
COPY controllers/ controllers/
15+
COPY . .
1616

1717
# Build
1818
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go

0 commit comments

Comments
 (0)