diff --git a/Dockerfile b/Dockerfile index 790690cb..a1ab82c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,11 +37,6 @@ ENV GOPROXY=$goproxy COPY go.mod go.mod COPY go.sum go.sum -# Cache deps before building and copying source so that we don't need to re-download as much -# and so that source changes don't invalidate our downloaded layer -RUN --mount=type=cache,target=/go/pkg/mod \ - go mod download - # Copy the sources COPY ./ ./ @@ -50,10 +45,7 @@ ARG package=. ARG ARCH ARG ldflags -# Do not force rebuild of up-to-date packages (do not use -a) and use the compiler cache folder -RUN --mount=type=cache,target=/root/.cache/go-build \ - --mount=type=cache,target=/go/pkg/mod \ - CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \ +Run CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \ go build -trimpath -ldflags "${ldflags} -extldflags '-static'" \ -o manager ${package} diff --git a/test/e2e/cluster_upgrade_test.go b/test/e2e/cluster_upgrade_test.go index e5b290d2..4d8070da 100644 --- a/test/e2e/cluster_upgrade_test.go +++ b/test/e2e/cluster_upgrade_test.go @@ -25,6 +25,9 @@ import ( ) var _ = Describe("Workload cluster upgrade [CK8s-Upgrade]", func() { + // TODO(bschimke): Remove once we find a way to run e2e tests with other infrastructure providers that support snap. + Skip("Skipping the upgrade tests as snap does not work on CAPD.") + Context("Upgrading a cluster with 1 control plane", func() { ClusterUpgradeSpec(ctx, func() ClusterUpgradeSpecInput { return ClusterUpgradeSpecInput{