-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update image publish jobs for mutable tags to new method #37720
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
Changes from 1 commit
348b662
69474d5
f173925
873284f
0fe30f9
b96a214
dc874ea
afbfeaf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,109 @@ | |
- VERSION="$(dda inv agent.version --url-safe --pipeline-id $PARENT_PIPELINE_ID)" || exit $? | ||
- export IMG_TAG_REFERENCE=${AGENT_REPOSITORY}:${VERSION}${IMG_TAG_REFERENCE_SUFFIX} | ||
|
||
# Stable tags | ||
.deploy_mutable_image_tags-base_rc: | ||
extends: .docker_publish_job_definition | ||
stage: deploy_mutable_image_tags | ||
dependencies: [] | ||
before_script: | ||
- VERSION="$(dda inv agent.version --url-safe --pipeline-id $PARENT_PIPELINE_ID)" || exit $? | ||
- export IMG_TAG_REFERENCE=${AGENT_REPOSITORY}:${VERSION}${IMG_TAG_REFERENCE_FLAVOR}${IMG_TAG_REFERENCE_WIN_OS}${IMG_TAG_REFERENCE_JMX} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: can we try to further simplify that with maybe something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just think that this might be difficult to read and change for example:
Where as this would be easier to maintain:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea, I tried to change it to look more like that and it should work and is much easier to read. |
||
- export IMG_NEW_TAGS=7-rc${IMG_TAG_REFERENCE_FLAVOR}${IMG_TAG_REFERENCE_WIN_OS}${IMG_TAG_REFERENCE_JMX} | ||
|
||
# Jobs [.on_rc] | ||
|
||
deploy_mutable_image_tags-a7-rc: | ||
extends: .deploy_mutable_image_tags-base_rc | ||
stage: deploy_mutable_image_tags | ||
rules: | ||
!reference [.on_rc] | ||
parallel: | ||
matrix: | ||
- IMG_TAG_REFERENCE_FLAVOR: | ||
- "" | ||
- "-servercore" | ||
- "-linux" | ||
IMG_TAG_REFERENCE_JMX: | ||
- "" | ||
- "-jmx" | ||
|
||
deploy_mutable_image_tags-a7-win-only-rc: | ||
extends: .deploy_mutable_image_tags-base_rc | ||
stage: deploy_mutable_image_tags | ||
rules: | ||
!reference [.on_rc] | ||
parallel: | ||
matrix: | ||
- IMG_TAG_REFERENCE_FLAVOR: | ||
- "" | ||
- "-servercore" | ||
IMG_TAG_REFERENCE_JMX: | ||
- "" | ||
- "-jmx" | ||
IMG_TAG_REFERENCE_WIN_OS: | ||
- "-ltsc2019" | ||
- "-ltsc2022" | ||
|
||
deploy_mutable_image_tags-a7-full-rc: | ||
extends: .deploy_mutable_image_tags_base | ||
stage: deploy_mutable_image_tags | ||
rules: | ||
!reference [.on_rc] | ||
variables: | ||
IMG_TAG_REFERENCE_SUFFIX: ["-full"] | ||
IMG_NEW_TAGS: ["7-rc-full"] | ||
|
||
deploy_mutable_image_tags-a7-fips-rc: | ||
extends: .deploy_mutable_image_tags_base | ||
stage: deploy_mutable_image_tags | ||
rules: | ||
!reference [.on_rc] | ||
parallel: | ||
matrix: | ||
- IMG_TAG_REFERENCE_SUFFIX: ["-fips"] | ||
IMG_NEW_TAGS: ["7-fips-rc"] | ||
AliDatadog marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- IMG_TAG_REFERENCE_SUFFIX: ["-fips-jmx"] | ||
IMG_NEW_TAGS: ["7-fips-rc-jmx"] | ||
AliDatadog marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# Jobs [.on_internal_rc] | ||
|
||
deploy_mutable_image_tags-a7_internal-rc: | ||
extends: .deploy_mutable_image_tags_base | ||
stage: deploy_mutable_image_tags | ||
rules: | ||
!reference [.on_internal_rc] | ||
variables: | ||
IMG_TAG_REFERENCE_SUFFIX: [""] | ||
IMG_NEW_TAGS: ["7-rc"] | ||
|
||
deploy_mutable_image_tags-a7-fips_internal-rc: | ||
extends: .deploy_mutable_image_tags_base | ||
stage: deploy_mutable_image_tags | ||
rules: | ||
!reference [.on_internal_rc] | ||
parallel: | ||
matrix: | ||
- IMG_TAG_REFERENCE_SUFFIX: ["-fips"] | ||
IMG_NEW_TAGS: ["7-fips-rc"] | ||
AliDatadog marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- IMG_TAG_REFERENCE_SUFFIX: ["-fips-jmx"] | ||
IMG_NEW_TAGS: ["7-fips-rc-jmx"] | ||
|
||
# Jobs [.on_internal_final] | ||
|
||
deploy_mutable_image_tags-a7_internal: | ||
extends: .deploy_mutable_image_tags_base | ||
stage: deploy_mutable_image_tags | ||
rules: !reference [.on_internal_final] | ||
parallel: | ||
matrix: | ||
- IMG_TAG_REFERENCE_SUFFIX: ["-jmx"] | ||
IMG_NEW_TAGS: ["7-jmx"] | ||
- IMG_TAG_REFERENCE_SUFFIX: ["-full"] | ||
IMG_NEW_TAGS: ["7-full"] | ||
- IMG_TAG_REFERENCE_SUFFIX: ["-fips-jmx"] | ||
IMG_NEW_TAGS: ["7-fips-jmx"] | ||
|
||
# Jobs [.on_final] | ||
|
||
deploy_mutable_image_tags-a7: | ||
extends: .deploy_mutable_image_tags_base | ||
|
@@ -40,19 +142,6 @@ deploy_mutable_image_tags-a7: | |
- IMG_TAG_REFERENCE_SUFFIX: ["-full"] | ||
IMG_NEW_TAGS: ["7-full,latest-full"] | ||
|
||
deploy_mutable_image_tags-a7_internal: | ||
extends: .deploy_mutable_image_tags_base | ||
stage: deploy_mutable_image_tags | ||
rules: !reference [.on_internal_final] | ||
parallel: | ||
matrix: | ||
- IMG_TAG_REFERENCE_SUFFIX: "-jmx" | ||
IMG_NEW_TAGS: 7-jmx | ||
- IMG_TAG_REFERENCE_SUFFIX: "-full" | ||
IMG_NEW_TAGS: 7-full | ||
- IMG_TAG_REFERENCE_SUFFIX: "-fips-jmx" | ||
IMG_NEW_TAGS: 7-fips-jmx | ||
|
||
deploy_mutable_image_tags-dogstatsd: | ||
extends: .docker_publish_job_definition | ||
stage: deploy_mutable_image_tags | ||
|
@@ -68,8 +157,7 @@ deploy_mutable_image_tags-a7-fips: | |
rules: !reference [.on_final] | ||
parallel: | ||
matrix: | ||
- IMG_TAG_REFERENCE_SUFFIX: "-fips" | ||
IMG_NEW_TAGS: 7-fips | ||
- IMG_TAG_REFERENCE_SUFFIX: "-fips-jmx" | ||
IMG_NEW_TAGS: 7-fips-jmx | ||
|
||
- IMG_TAG_REFERENCE_SUFFIX: ["-fips"] | ||
IMG_NEW_TAGS: ["7-fips"] | ||
- IMG_TAG_REFERENCE_SUFFIX: ["-fips-jmx"] | ||
IMG_NEW_TAGS: ["7-fips-jmx"] |
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.