Skip to content

[build][ci] Support uploading and pulling slave user docker image#24981

Merged
yejianquan merged 5 commits intosonic-net:masterfrom
yijingyan2:push-user-image
Jan 15, 2026
Merged

[build][ci] Support uploading and pulling slave user docker image#24981
yejianquan merged 5 commits intosonic-net:masterfrom
yijingyan2:push-user-image

Conversation

@yijingyan2
Copy link
Copy Markdown
Contributor

@yijingyan2 yijingyan2 commented Jan 6, 2026

Why I did it

  1. Support pulling slave user image first
  2. Update pipeline to push related image to ACR
Work item tracking
  • Microsoft ADO (number only):36316816

@yijingyan2 yijingyan2 requested a review from lguohan as a code owner January 6, 2026 03:19
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: yijingyan2 <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

if [[ "$(Build.SourceBranchName)" == "master" ]];then
docker tag ${image_tag} ${REGISTRY_SERVER}/${image_latest}
docker push ${REGISTRY_SERVER}/${image_latest}
docker tag ${user_image_tag} ${REGISTRY_SERVER}/${user_image_latest}
Copy link
Copy Markdown
Contributor

@liushilongbuaa liushilongbuaa Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need these 2 lines. We need:
docker push ${REGISTRY_SERVER}/${user_image_tag}

We need change Makefile try pull ${REGISTRY_SERVER}/${user_image_tag} first.
If not exist, pull ${REGISTRY_SERVER}/${image_tag}. If it also not exist, build locally.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made some changes according to this, can you help review? thanks

Signed-off-by: yijingyan2 <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@liushilongbuaa liushilongbuaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yijingyan2 yijingyan2 changed the title [ci] push user slave image to ACR [build][ci] Support uploading and pulling slave user docker image Jan 15, 2026
Copy link
Copy Markdown
Contributor

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yejianquan yejianquan merged commit 28f36c1 into sonic-net:master Jan 15, 2026
23 checks passed
FengPan-Frank pushed a commit to FengPan-Frank/sonic-buildimage that referenced this pull request Mar 6, 2026
…nic-net#24981)

Why I did it
Support pulling slave user image first
Update pipeline to push related image to ACR

Signed-off-by: yijingyan2 <[email protected]>
Signed-off-by: Feng Pan <[email protected]>
dprital pushed a commit that referenced this pull request Mar 19, 2026
…4981)

Why I did it
Support pulling slave user image first
Update pipeline to push related image to ACR

Signed-off-by: yijingyan2 <[email protected]>
Signed-off-by: dprital <[email protected]>
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.

4 participants