-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ngc signing job for auto signing #31
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Signed-off-by: shiva kumar <[email protected]>
6e0ba05
to
f66cab1
Compare
sign:ngc: | ||
extends: | ||
- .sign:ngc | ||
parallel: | ||
matrix: | ||
- SIGN_JOB_NAME: [""] | ||
DIST: ["CI_COMMIT_TAG", "ubi8"] | ||
rules: | ||
- if: '$DIST == "CI_COMMIT_TAG"' | ||
variables: | ||
IMAGE_TAG: "${SIGN_JOB_NAME}${CI_COMMIT_TAG}" | ||
- when: always | ||
variables: | ||
IMAGE_TAG: "${SIGN_JOB_NAME}${CI_COMMIT_TAG}-${DIST}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shivakunv I have some comments:
- Specifying
when: always
is incorrect since now the sign job is always added to every pipeline (not just pipelines triggered from tag events). - Can we simplify this a bit since
SIGN_JOB_NAME
is never used?
What about my below suggestion?
sign:ngc:
extends:
- .sign:ngc
variables:
IMAGE_TAG: "${CI_COMMIT_TAG}-${DIST}"
parallel:
matrix:
- DIST: ["SHORT_TAG", "ubi8"]
rules:
- if: $CI_COMMIT_TAG && $DIST == "SHORT_TAG"
variables:
IMAGE_TAG: "${CI_COMMIT_TAG}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cdesiniotis addressed in :
#35
thanks @elezar
No description provided.