Skip to content

Commit b0ac947

Browse files
SPS initial setup
1 parent 19468a3 commit b0ac947

2 files changed

Lines changed: 45 additions & 32 deletions

File tree

.pipeline-config.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: '1'
2+
# 'ibmcloud cr images --restrict continuous-delivery' for image options
3+
setup:
4+
skip: true
5+
6+
test:
7+
abort_on_failure: false
8+
image: icr.io/continuous-delivery/pipeline/pipeline-base-ubi9:latest
9+
script: |
10+
#!/usr/bin/env bash
11+
12+
if [[ "$PIPELINE_DEBUG" == 1 ]]; then
13+
trap env EXIT
14+
env
15+
set -x
16+
fi
17+
18+
cd "$WORKSPACE/$(load_repo app-repo path)"
19+
20+
dnf update
21+
wget https://go.dev/dl/go1.23.6.linux-amd64.tar.gz
22+
tar -C /usr/local -xzf go1.23.6.linux-amd64.tar.gz
23+
export PATH=$PATH:/usr/local/go/bin
24+
export GOPATH=$HOME/go
25+
export PATH=$PATH:$GOPATH/bin
26+
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -d -b $GOPATH/bin
27+
# Actual Tests
28+
go vet $(go list ./... | grep -v "fixtures" | grep -v "vendor")
29+
go test $(go list ./... | grep -v "fixtures" | grep -v "vendor")
30+
gosec -exclude-dir=fixture -exclude-dir=plugin/resources -quiet ./...
31+
32+
# See .cra/cveignore file for skipped checks.
33+
compliance-checks:
34+
image: icr.io/continuous-delivery/pipeline/pipeline-base-ubi9:latest
35+
dind: true
36+
abort_on_failure: false
37+
image_pull_policy: IfNotPresent
38+
skip: false
39+
runAfter: null
40+
script: |
41+
#!/bin/sh
42+
yum update -yq && yum install -yq python3-pip
43+
python3 --version
44+
45+
"/opt/commons/compliance-checks/run.sh"

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)