Skip to content

Commit

Permalink
konflux migration: Update default variable to true (RedHatInsights#214)
Browse files Browse the repository at this point in the history
* Update default variable to true

* Update Dockerfile with new image to pass enterprise policy contract

* Update Dockerfile with missing RUN command
  • Loading branch information
Ellen-Yi-Dong authored Jul 30, 2024
1 parent a651762 commit a1db4e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .tekton/entitlements-api-go-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
description: Image tag expiration time, time values could be something like
1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
- default: "false"
- default: "true"
description: Build a source image.
name: build-source-image
type: string
Expand Down
2 changes: 1 addition & 1 deletion .tekton/entitlements-api-go-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ spec:
description: Image tag expiration time, time values could be something like
1h, 2d, 3w for hours, days, and weeks, respectively.
name: image-expires-after
- default: "false"
- default: "true"
description: Build a source image.
name: build-source-image
type: string
Expand Down
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
# Use go-toolset as the builder image
# Once built, copys GO executable to a smaller image and runs it from there
# FROM registry.redhat.io/ubi8/go-toolset as builder
FROM quay.io/projectquay/golang:1.20 as builder
#FROM quay.io/projectquay/golang:1.20 as builder

FROM registry.access.redhat.com/ubi8/go-toolset:1.20.10 as builder

WORKDIR /go/src/app

COPY go.mod go.sum ./

RUN go mod download
USER root

RUN go mod download
COPY . .

USER 0

RUN make

# Using ubi8-minimal due to its smaller footprint
Expand All @@ -30,4 +31,4 @@ COPY bundles ./bundles

USER 1001

CMD ["/entitlements-api-go"]
CMD ["/entitlements-api-go"]

0 comments on commit a1db4e4

Please sign in to comment.