From b91d0647e20a93d9dffc10e9bf4fe617ef935e61 Mon Sep 17 00:00:00 2001 From: gbenhaim Date: Sun, 4 Jun 2023 17:10:18 +0300 Subject: [PATCH] do not merge test Signed-off-by: gbenhaim --- .tekton/migration-dashboard-pull-request.yaml | 4 ++-- dashboard/.test | 1 + dashboard/Dockerfile | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 dashboard/.test diff --git a/.tekton/migration-dashboard-pull-request.yaml b/.tekton/migration-dashboard-pull-request.yaml index d39c0bd..89bbcb2 100644 --- a/.tekton/migration-dashboard-pull-request.yaml +++ b/.tekton/migration-dashboard-pull-request.yaml @@ -19,7 +19,7 @@ metadata: spec: params: - name: dockerfile - value: Dockerfile + value: dashboard/Dockerfile - name: git-url value: '{{repo_url}}' - name: image-expires-after @@ -27,7 +27,7 @@ spec: - name: output-image value: quay.io/redhat-user-workloads/rhtap-migration-tenant/migration-dashboard/migration-dashboard:on-pr-{{revision}} - name: path-context - value: dashboard + value: . - name: revision value: '{{revision}}' pipelineSpec: diff --git a/dashboard/.test b/dashboard/.test new file mode 100644 index 0000000..f248911 --- /dev/null +++ b/dashboard/.test @@ -0,0 +1 @@ +dfsfdf diff --git a/dashboard/Dockerfile b/dashboard/Dockerfile index fb08cce..36973c8 100644 --- a/dashboard/Dockerfile +++ b/dashboard/Dockerfile @@ -3,9 +3,14 @@ FROM registry.access.redhat.com/ubi9/go-toolset:1.18.10-4 as builder COPY ./ ./ # cache deps before building and copying source so that we don't need to re-download as much # and so that source changes don't invalidate our downloaded layer +USER 0 +RUN echo $PWD && ls -l -a && yum install -y git +RUN git config --global --add safe.directory $PWD && git log --graph --oneline --all --decorate && git fetch && git log --graph --oneline --all RUN go mod download RUN go build -o bin/generator . + + FROM registry.access.redhat.com/ubi9-minimal:9.2-484 COPY --from=builder /opt/app-root/src/bin/generator /