Skip to content

Support PRs to use PR ID in the docker images pushed to our docker registry #20317

@mdelapenya

Description

@mdelapenya

When packaging a PR, the generated docker image is pushed to our docker registry with the name of the snapshot. We'd like to generate the docker image including the PR ID:

- def newName = "${DOCKER_REGISTRY}/observability-ci/${name}:${libbetaVer}"
- def commitName = "${DOCKER_REGISTRY}/observability-ci/${name}:${env.GIT_BASE_COMMIT}"
+ def newName = "${DOCKER_REGISTRY}/observability-ci/${name}:${PR_ID}-${libbetaVer}"
+ def commitName = "${DOCKER_REGISTRY}/observability-ci/${name}:${PR_ID}-${env.GIT_BASE_COMMIT}"

cc/ @elastic/observablt-robots @ph @EricDavisX

Metadata

Metadata

Assignees

Labels

Team:AutomationLabel for the Observability productivity team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions