Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.

Commit 14ffda3

Browse files
committed
ci: add pr_check and build_tag scripts
1 parent a37d958 commit 14ffda3

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

build_tag.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -exvo pipefail -o nounset
4+
5+
source "${PWD}/cicd/jenkins_env.sh"
6+
7+
./mage release

cicd/jenkins_env.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# utilize local go 1.19 version if available
4+
GO_1_19="/opt/go/1.19.3/bin"
5+
6+
if [ -d "${GO_1_19}" ]; then
7+
PATH="${GO_1_19}:${PATH}"
8+
fi
9+
10+
export IMAGE_REGISTRY="quay.io"
11+
export IMAGE_ORG="mt-sre"

magefile.go

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ var Aliases = map[string]interface{}{
9696
"build": Build.CLI,
9797
"check": All.Check,
9898
"install": Build.Install,
99+
"release": Release.Full,
99100
"run-hooks": Hooks.Run,
100101
"test": All.Test,
101102
}

pr_check.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -exvo pipefail -o nounset
4+
5+
source "${PWD}/cicd/jenkins_env.sh"
6+
7+
./mage -t 10m run-hooks && ./mage -t 10m test

0 commit comments

Comments
 (0)