Skip to content
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
6 changes: 3 additions & 3 deletions .tekton/source-to-image-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ spec:
description: Skip checks against built image
name: skip-checks
type: string
- default: "false"
- default: "true"
description: Execute the build with network isolation
name: hermetic
type: string
- default: ""
- default: '{"packages": [{"type": "gomod"}], "flags": ["gomod-vendor-check"]}'
description: Build dependencies to be prefetched by Cachi2
name: prefetch-input
type: string
- default: ""
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
6 changes: 3 additions & 3 deletions .tekton/source-to-image-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@ spec:
description: Skip checks against built image
name: skip-checks
type: string
- default: "false"
- default: "true"
description: Execute the build with network isolation
name: hermetic
type: string
- default: ""
- default: '{"packages": [{"type": "gomod"}], "flags": ["gomod-vendor-check"]}'
description: Build dependencies to be prefetched by Cachi2
name: prefetch-input
type: string
- default: ""
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
21 changes: 18 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM registry.redhat.io/ubi8/go-toolset:1.21 AS builder

ENV S2I_GIT_VERSION="" \
S2I_GIT_MAJOR="" \
S2I_GIT_MINOR=""
ENV S2I_GIT_VERSION="1.4.0" \
S2I_GIT_MAJOR="1" \
S2I_GIT_MINOR="4"

COPY . .

Expand All @@ -19,3 +19,18 @@ COPY --from=builder /tmp/s2i /usr/local/bin/s2i
USER 1001

ENTRYPOINT [ "/usr/local/bin/s2i" ]

LABEL \
name="source-to-image/source-to-image" \
description="Source-to-Image is a builder image" \
summary="Source-to-Image is a builder image" \
version="1.4.0" \
architecture="${GOARCH}" \
vendor="Red Hat, Inc." \
com.redhat.component="source-to-image-container" \
maintainer="[email protected]" \
io.k8s.description="Source-to-Image is a builder image" \
io.k8s.display-name="Source-to-Image" \
io.openshift.tags="source-to-image,s2i" \
io.openshift.maintainer.product="OpenShift Container Platform" \
io.openshift.maintainer.component="Source-to-Image" \