Commit 9e787bfa authored by Luther Monson's avatar Luther Monson Committed by Brad Davidson

moving fossa to being inline step with a sles image

parent b6919adf
...@@ -23,16 +23,16 @@ steps: ...@@ -23,16 +23,16 @@ steps:
path: /var/run/docker.sock path: /var/run/docker.sock
- name: fossa - name: fossa
image: rancher/dapper:v0.5.4 image: registry.suse.com/suse/sle15:15.3.17.8.1
failure: ignore failure: ignore
environment: environment:
FOSSA_API_KEY: FOSSA_API_KEY:
from_secret: FOSSA_API_KEY from_secret: FOSSA_API_KEY
commands: commands:
- dapper fossa - zypper -n install curl unzip
volumes: - "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/spectrometer/master/install.sh | sh"
- name: docker - fossa analyze
path: /var/run/docker.sock - fossa test
when: when:
instance: instance:
- drone-publish.k3s.io - drone-publish.k3s.io
......
...@@ -31,7 +31,6 @@ RUN rm -rf /go/src /go/pkg ...@@ -31,7 +31,6 @@ RUN rm -rf /go/src /go/pkg
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ RUN if [ "$(go env GOARCH)" = "amd64" ]; then \
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.41.1; \ curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.41.1; \
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/spectrometer/master/install.sh | sh; \
fi fi
ENV YQ_URL=https://github.com/mikefarah/yq/releases/download/v4.6.2/yq_linux ENV YQ_URL=https://github.com/mikefarah/yq/releases/download/v4.6.2/yq_linux
...@@ -42,7 +41,7 @@ ENV SELINUX $SELINUX ...@@ -42,7 +41,7 @@ ENV SELINUX $SELINUX
ENV GO111MODULE off ENV GO111MODULE off
ENV DAPPER_RUN_ARGS --privileged -v k3s-cache:/go/src/github.com/rancher/k3s/.cache -v trivy-cache:/root/.cache/trivy ENV DAPPER_RUN_ARGS --privileged -v k3s-cache:/go/src/github.com/rancher/k3s/.cache -v trivy-cache:/root/.cache/trivy
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME SKIP_VALIDATE GCLOUD_AUTH GITHUB_TOKEN GOLANG FOSSA_API_KEY ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME SKIP_VALIDATE GCLOUD_AUTH GITHUB_TOKEN GOLANG
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/ ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
ENV DAPPER_OUTPUT ./bin ./dist ./build/out ENV DAPPER_OUTPUT ./bin ./dist ./build/out
ENV DAPPER_DOCKER_SOCKET true ENV DAPPER_DOCKER_SOCKET true
......
#!/bin/bash
set -e
fossa analyze
fossa test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment