Skip to content

Commit 7be5618

Browse files
committed
[no-relnote] Move definitions from .common to .nvidia-ci
Since we no longer maintain two pipeline definitions, it is simpler to maintain a single CI definition file. Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 35babbe commit 7be5618

File tree

2 files changed

+40
-59
lines changed

2 files changed

+40
-59
lines changed

.common-ci.yml

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

.nvidia-ci.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
include:
16-
- local: '.common-ci.yml'
17-
1815
default:
16+
image: docker
17+
services:
18+
- name: docker:dind
19+
command: ["--experimental"]
1920
tags:
2021
- cnt
2122
- container-dev
@@ -25,6 +26,8 @@ default:
2526
- type/docker
2627

2728
variables:
29+
GIT_SUBMODULE_STRATEGY: recursive
30+
2831
DOCKER_DRIVER: overlay2
2932
DOCKER_TLS_CERTDIR: "/certs"
3033
# Release "devel"-tagged images off the main branch
@@ -39,6 +42,40 @@ variables:
3942
KITMAKER_RELEASE_FOLDER: "kitmaker"
4043
PACKAGE_ARCHIVE_RELEASE_FOLDER: "releases"
4144

45+
stages:
46+
- pull
47+
- scan
48+
- release
49+
- sign
50+
51+
.pipeline-trigger-rules:
52+
rules:
53+
# We trigger the pipeline if started manually
54+
- if: $CI_PIPELINE_SOURCE == "web"
55+
# We trigger the pipeline on the main branch
56+
- if: $CI_COMMIT_BRANCH == "main"
57+
# We trigger the pipeline on the release- branches
58+
- if: $CI_COMMIT_BRANCH =~ /^release-.*$/
59+
# We trigger the pipeline on tags
60+
- if: $CI_COMMIT_TAG && $CI_COMMIT_TAG != ""
61+
62+
workflow:
63+
rules:
64+
# We trigger the pipeline on a merge request
65+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
66+
# We then add all the regular triggers
67+
- !reference [.pipeline-trigger-rules, rules]
68+
69+
# Download the regctl binary for use in the release steps
70+
.regctl-setup:
71+
before_script:
72+
- export REGCTL_VERSION=v0.4.5
73+
- apk add --no-cache curl
74+
- mkdir -p bin
75+
- curl -sSLo bin/regctl https://github.com/regclient/regclient/releases/download/${REGCTL_VERSION}/regctl-linux-amd64
76+
- chmod a+x bin/regctl
77+
- export PATH=$(pwd)/bin:${PATH}
78+
4279
# .copy-images copies the required application and packaging images from the
4380
# IN_IMAGE="${IN_IMAGE_NAME}:${IN_IMAGE_TAG}${TAG_SUFFIX}"
4481
# to

0 commit comments

Comments
 (0)