Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
4ec71b36
Commit
4ec71b36
authored
Sep 17, 2021
by
Luther Monson
Committed by
Brad Davidson
Sep 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding fossa anaylze/test drone step
Signed-off-by:
Luther Monson
<
luther.monson@gmail.com
>
parent
73e21e73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
.drone.yml
.drone.yml
+22
-0
Dockerfile.dapper
Dockerfile.dapper
+2
-1
fossa.sh
scripts/fossa.sh
+5
-0
No files found.
.drone.yml
View file @
4ec71b36
...
@@ -22,6 +22,28 @@ steps:
...
@@ -22,6 +22,28 @@ steps:
-
name
:
docker
-
name
:
docker
path
:
/var/run/docker.sock
path
:
/var/run/docker.sock
-
name
:
fossa
image
:
rancher/dapper:v0.5.4
failure
:
ignore
environment
:
FOSSA_API_KEY
:
from_secret
:
FOSSA_API_KEY
commands
:
-
dapper fossa
volumes
:
-
name
:
docker
path
:
/var/run/docker.sock
when
:
instance
:
-
drone-publish.k3s.io
ref
:
include
:
-
"
refs/heads/master"
-
"
refs/heads/release-*"
event
:
-
push
-
tag
-
name
:
github_binary_release
-
name
:
github_binary_release
image
:
ibuildthecloud/github-release:v0.0.1
image
:
ibuildthecloud/github-release:v0.0.1
settings
:
settings
:
...
...
Dockerfile.dapper
View file @
4ec71b36
...
@@ -31,6 +31,7 @@ RUN rm -rf /go/src /go/pkg
...
@@ -31,6 +31,7 @@ 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
...
@@ -41,7 +42,7 @@ ENV SELINUX $SELINUX
...
@@ -41,7 +42,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
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME SKIP_VALIDATE GCLOUD_AUTH GITHUB_TOKEN GOLANG
FOSSA_API_KEY
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
...
...
scripts/fossa.sh
0 → 100755
View file @
4ec71b36
#!/bin/bash
set
-e
fossa analyze
fossa
test
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment