Skip to content

Commit 67cb4ed

Browse files
committed
ci: fix Dockerfiles; parameterize tag
Signed-off-by: Tyler Gillson <[email protected]>
1 parent aa2e77b commit 67cb4ed

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ ARG TARGETOS
44
ARG TARGETARCH
55

66
WORKDIR /workspace
7+
78
# Copy the Go Modules manifests
89
COPY go.mod go.mod
910
COPY go.sum go.sum
10-
# cache deps before building and copying source so that we don't need to re-download as much
11-
# and so that source changes don't invalidate our downloaded layer
1211
RUN go mod download
1312

1413
# Copy the go source
1514
COPY cmd/main.go cmd/main.go
1615
COPY api/ api/
1716
COPY internal/ internal/
17+
COPY pkg/ pkg/
1818

1919
# Build
2020
# the GOARCH has not a default value to allow the binary be built according to the host where the command

Dockerfile.devspace

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ RUN apk add --no-cache git bash
99
RUN go install github.com/go-delve/delve/cmd/dlv@latest
1010

1111
WORKDIR /workspace
12+
1213
# Copy the Go Modules manifests
1314
COPY go.mod go.mod
1415
COPY go.sum go.sum
15-
# cache deps before building and copying source so that we don't need to re-download as much
16-
# and so that source changes don't invalidate our downloaded layer
1716
RUN go mod download
1817

1918
# Copy the go source
2019
COPY cmd/main.go cmd/main.go
2120
COPY api/ api/
2221
COPY internal/ internal/
22+
COPY pkg/ pkg/

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
include build/makelib/common.mk
22
include build/makelib/plugin.mk
33

4-
# Image URL to use all building/pushing image targets
5-
IMG ?= quay.io/validator-labs/validator-plugin-aws:latest
4+
# Container image
5+
TAG ?= latest
6+
IMG ?= quay.io/validator-labs/validator-plugin-aws:$(TAG)
67

78
# Helm vars
89
CHART_NAME=validator-plugin-aws

build

0 commit comments

Comments
 (0)