Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tags in pinned docker images #209

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang@sha256:a07daa84ec6c320c62f1fddb40b84698de004aac1c5ceb28243d674952d536f3 AS build
FROM golang:1.22.6@sha256:2bd56f00ff47baf33e64eae7996b65846c7cb5e0a46e0a882ef179fd89654afa AS build
WORKDIR /go/src
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN CGO_ENABLED=0 go build -o konfirm .

FROM registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a
FROM registry.access.redhat.com/ubi9/ubi-micro:9.4-13@sha256:65e311ef7036acc3692d291403656b840fd216d120b3c37af768f91df050257d
COPY --from=build --chown=0:0 /go/src/konfirm /usr/local/bin/
USER 1001
ENTRYPOINT ["/usr/local/bin/konfirm"]
4 changes: 2 additions & 2 deletions docker/e2e.dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang@sha256:a07daa84ec6c320c62f1fddb40b84698de004aac1c5ceb28243d674952d536f3 AS build
FROM golang:1.22.6@sha256:2bd56f00ff47baf33e64eae7996b65846c7cb5e0a46e0a882ef179fd89654afa AS build
WORKDIR /go/src
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN CGO_ENABLED=0 go test -c -o konfirm-e2e ./pkg/controllers/e2e

FROM registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a
FROM registry.access.redhat.com/ubi9/ubi-micro:9.4-13@sha256:65e311ef7036acc3692d291403656b840fd216d120b3c37af768f91df050257d
COPY --from=build --chown=0:0 /go/src/konfirm-e2e /usr/local/bin/
USER 1001
ENTRYPOINT ["/usr/local/bin/konfirm-e2e"]
4 changes: 2 additions & 2 deletions docker/mock.dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang@sha256:a07daa84ec6c320c62f1fddb40b84698de004aac1c5ceb28243d674952d536f3 AS build
FROM golang:1.22.6@sha256:2bd56f00ff47baf33e64eae7996b65846c7cb5e0a46e0a882ef179fd89654afa AS build
WORKDIR /go/src
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN CGO_ENABLED=0 go build -o konfirm-mock ./inspections/mock

FROM registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a
FROM registry.access.redhat.com/ubi9/ubi-micro:9.4-13@sha256:65e311ef7036acc3692d291403656b840fd216d120b3c37af768f91df050257d
COPY --from=build --chown=0:0 /go/src/konfirm-mock /usr/local/bin/
USER 1001
ENTRYPOINT ["/usr/local/bin/konfirm-mock"]