Skip to content

Commit

Permalink
create separate files for CI builds to avoid future conflicts with up…
Browse files Browse the repository at this point in the history
…stream

Signed-off-by: Subbarao Meduri <[email protected]>
  • Loading branch information
subbarao-meduri authored and openshift-merge-robot committed Aug 24, 2023
1 parent fedb308 commit 5c96f8f
Show file tree
Hide file tree
Showing 4 changed files with 532 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .busybox-versions
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Auto generated by busybox-updater.sh. DO NOT EDIT
amd64=bf6a64ccaadc4b4f74243fee4127f257c6b8d7dd69b74c9c75c0a1637862fb95
arm64=e2da4cd01d70ef024a4a23e81d05ca1483891260dbf667e8baf835b68132c5ee
arm=e60979dd255bc718d9aa2a1ed04e617e93039fdd068073baab09ff0f4a870924
ppc64le=7e3f7279bda30acfe53f44a4ee5e99878df36d9665e0af33f3a4138289322974
s390x=8116c7af697a4cc36b40a9f11d0cfda7251508a04a22e691473c3dce0066d08a
amd64=087a50591bf650f81920be56379a42841029ae35b7b699c308bdbc758bc24254
arm64=6a740027f91e668069bb778277738f29aa38417285d7102362fa9b05ade3c311
arm=1869456db528b271f9aec9b7c17490f7cae610d457e9cc19a0055b3311c626f0
ppc64le=b698a18e2d756e00697a63ac749825ee8c3f8a50133b8998dbed092c474c1f46
s390x=72832339f6003c44a4cdf9d576efa3ff19d5ce55e27198b4089528bf0dd04788
19 changes: 19 additions & 0 deletions .promu.prow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
go:
version: 1.19
repository:
path: github.com/thanos-io/thanos
build:
static: false
binaries:
- name: thanos
path: ./cmd/thanos
flags: -a -tags netgo
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
-X github.com/prometheus/common/version.Branch={{.Branch}}
-X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
crossbuild:
platforms:
- linux/amd64
18 changes: 18 additions & 0 deletions Dockerfile.prow
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM registry.ci.openshift.org/stolostron/builder:go1.20-linux as builder

WORKDIR $GOPATH/src/github.com/thanos-io/thanos

COPY . $GOPATH/src/github.com/thanos-io/thanos

RUN git update-index --refresh; make build -f Makefile.prow

# -----------------------------------------------------------------------------

# FROM quay.io/prometheus/busybox@sha256:${BASE_DOCKER_SHA}
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
LABEL maintainer="The ACM Thanos Authors"

COPY --from=builder /go/bin/thanos /bin/thanos
RUN microdnf update -y && microdnf clean all

ENTRYPOINT [ "/bin/thanos" ]
Loading

0 comments on commit 5c96f8f

Please sign in to comment.