mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
@@ -18,7 +18,7 @@ We follow a hard flattening approach; i.e. direct and inherited dependencies are
|
||||
|
||||
Dependencies are managed with [Go Modules](https://github.com/golang/go/wiki/Modules) but committed directly to the repository.
|
||||
|
||||
We require at least Go 1.16.
|
||||
We require at least Go 1.17.
|
||||
|
||||
- Add or update a dependency with `go get <dependency>@<version>`.
|
||||
- If you want to use a fork of a project or ensure that a dependency is not updated even when another dependency requires a newer version of it, manually add a [replace directive in the go.mod file](https://github.com/golang/go/wiki/Modules#when-should-i-use-the-replace-directive).
|
||||
|
||||
@@ -9,6 +9,6 @@ else
|
||||
--env IS_CONTAINER=TRUE \
|
||||
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
|
||||
--workdir /go/src/github.com/openshift/installer \
|
||||
docker.io/openshift/origin-release:golang-1.16 \
|
||||
docker.io/golang:1.17 \
|
||||
./hack/go-fmt.sh "${@}"
|
||||
fi
|
||||
|
||||
@@ -9,6 +9,6 @@ else
|
||||
--env IS_CONTAINER=TRUE \
|
||||
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
|
||||
--workdir /go/src/github.com/openshift/installer \
|
||||
docker.io/openshift/origin-release:golang-1.16 \
|
||||
docker.io/golang:1.17 \
|
||||
./hack/go-genmock.sh "${@}"
|
||||
fi
|
||||
|
||||
@@ -8,6 +8,6 @@ else
|
||||
--env IS_CONTAINER=TRUE \
|
||||
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
|
||||
--workdir /go/src/github.com/openshift/installer \
|
||||
docker.io/openshift/origin-release:golang-1.16 \
|
||||
docker.io/golang:1.17 \
|
||||
./hack/go-lint.sh "${@}"
|
||||
fi
|
||||
|
||||
@@ -12,6 +12,6 @@ else
|
||||
--env IS_CONTAINER=TRUE \
|
||||
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
|
||||
--workdir /go/src/github.com/openshift/installer \
|
||||
docker.io/openshift/origin-release:golang-1.16 \
|
||||
docker.io/golang:1.17 \
|
||||
./hack/go-sec.sh "${@}"
|
||||
fi
|
||||
|
||||
@@ -8,6 +8,6 @@ else
|
||||
--env IS_CONTAINER=TRUE \
|
||||
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
|
||||
--workdir /go/src/github.com/openshift/installer \
|
||||
docker.io/openshift/origin-release:golang-1.16 \
|
||||
docker.io/golang:1.17 \
|
||||
./hack/go-test.sh "${@}"
|
||||
fi
|
||||
|
||||
@@ -6,6 +6,6 @@ else
|
||||
--env IS_CONTAINER=TRUE \
|
||||
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
|
||||
--workdir /go/src/github.com/openshift/installer \
|
||||
docker.io/openshift/origin-release:golang-1.16 \
|
||||
docker.io/golang:1.17 \
|
||||
./hack/go-vet.sh "${@}"
|
||||
fi;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This Dockerfile is used by CI to publish the installer image.
|
||||
# It builds an image containing only the openshift-install.
|
||||
|
||||
FROM registry.ci.openshift.org/ocp/builder:rhel-7-golang-1.16-openshift-4.10 AS builder
|
||||
FROM registry.ci.openshift.org/ocp/builder:rhel-7-golang-1.17-openshift-4.10 AS builder
|
||||
ARG TAGS=""
|
||||
WORKDIR /go/src/github.com/openshift/installer
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user