-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pipeline-config.yaml
More file actions
44 lines (38 loc) · 1.14 KB
/
.pipeline-config.yaml
File metadata and controls
44 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '1'
# 'ibmcloud cr images --restrict continuous-delivery' for image options
setup:
skip: true
test:
abort_on_failure: true
image: icr.io/continuous-delivery/pipeline/pipeline-base-ubi9:latest
script: |
#!/usr/bin/env bash
if [[ "$PIPELINE_DEBUG" == 1 ]]; then
trap env EXIT
env
set -x
fi
cd "$WORKSPACE/$(load_repo app-repo path)"
dnf update
wget -q https://go.dev/dl/go1.23.6.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.23.6.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -d -b $GOPATH/bin
go version
# Actual Tests
"./bin/gotest.sh"
# See .cra/cveignore file for skipped checks.
compliance-checks:
image: icr.io/continuous-delivery/pipeline/pipeline-base-ubi9:latest
dind: true
abort_on_failure: false
image_pull_policy: IfNotPresent
skip: false
runAfter: null
script: |
#!/bin/sh
yum update -yq && yum install -yq python3-pip
python3 --version
"/opt/commons/compliance-checks/run.sh"