Skip to content
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

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

shivakunv
Copy link
Contributor

No description provided.

@shivakunv
Copy link
Contributor Author

While correcting GitHub diverged changes, I accidentally closed the PR #27 . Please review the new PR : #31

@cdesiniotis @elezar

@shivakunv shivakunv requested a review from elezar July 16, 2024 12:53
@shivakunv shivakunv self-assigned this Jul 16, 2024
@shivakunv shivakunv marked this pull request as ready for review July 16, 2024 12:54
Copy link
Contributor Author

@shivakunv shivakunv left a 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 <shivaku@nvidia.com>
@shivakunv shivakunv merged commit 9967683 into NVIDIA:master Jul 16, 2024
5 checks passed
@shivakunv shivakunv deleted the ngc_signing_job branch July 16, 2024 13:45
Comment on lines +189 to +202
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}"
Copy link
Collaborator

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:

  1. Specifying when: always is incorrect since now the sign job is always added to every pipeline (not just pipelines triggered from tag events).
  2. 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}"

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants