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

Update dockers with platform & SONiC version as part of name/tag. #4337

Merged
merged 5 commits into from
Apr 10, 2020

Conversation

renukamanavalan
Copy link
Contributor

@renukamanavalan renukamanavalan commented Mar 30, 2020

Include platform info in name.
Get SONiC Version as parameter and use
Make additional tag as optional.
Avoid repetitions by using function.

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Get SONiC Version as parameter and use
Make additional tag as optional.
Avoid repetitions by using function.
@renukamanavalan renukamanavalan self-assigned this Mar 30, 2020
@renukamanavalan renukamanavalan changed the title Include platform info in name. Update dockers with platform & SONiC version as part of name/tag. Mar 30, 2020
push_docker.sh Outdated Show resolved Hide resolved
push_docker.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

As comments

@svc-acs
Copy link
Collaborator

svc-acs commented Apr 2, 2020

Build finished. No test results found.

1 similar comment
@svc-acs
Copy link
Collaborator

svc-acs commented Apr 2, 2020

Build finished. No test results found.

push_docker.sh Outdated Show resolved Hide resolved
2) Handle DOCKER_IMAGE_TAG only if given
3) Use BUILD_NUMBER only if SONIC_VERSION not given
4) Tag with SONIC_VERSION if given.

Current behavior is not changed, unless SONIC_VERSION is given.
push_docker.sh Outdated

if [ "$#" != "0" ]
then
SONIC_VERSION=$1
Copy link
Collaborator

@qiluo-msft qiluo-msft Apr 8, 2020

Choose a reason for hiding this comment

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

SONIC_VERSION [](start = 4, length = 13)

What if user only have SONIC_VERSION but no PLATFORM? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This script does not support it. Being positional args user can put "generic", when PLATFORM can't be given.

@qiluo-msft qiluo-msft dismissed their stale review April 8, 2020 23:30

Unblock, still improvement is recommended

1) Added new args with options
2) Handle PORT possible being empty
3) Exhibit new behavior only if both version & platform are given.
@renukamanavalan renukamanavalan merged commit a2cc6b6 into sonic-net:master Apr 10, 2020
abdosi pushed a commit that referenced this pull request Apr 11, 2020
)

* Include platform info in name.
Get SONiC Version as parameter and use
Make additional tag as optional.
Avoid repetitions by using function.

* Per review comments, make SONIC_VERSION optional and added some comments.

* 1) Added additional params are optional
2) Handle DOCKER_IMAGE_TAG only if given
3) Use BUILD_NUMBER only if SONIC_VERSION not given
4) Tag with SONIC_VERSION if given.

Current behavior is not changed, unless SONIC_VERSION is given.

* Update per review comments
1) Added new args with options
2) Handle PORT possible being empty
3) Exhibit new behavior only if both version & platform are given.

* Drop redundant quotes
yxieca pushed a commit that referenced this pull request Apr 15, 2020
)

* Include platform info in name.
Get SONiC Version as parameter and use
Make additional tag as optional.
Avoid repetitions by using function.

* Per review comments, make SONIC_VERSION optional and added some comments.

* 1) Added additional params are optional
2) Handle DOCKER_IMAGE_TAG only if given
3) Use BUILD_NUMBER only if SONIC_VERSION not given
4) Tag with SONIC_VERSION if given.

Current behavior is not changed, unless SONIC_VERSION is given.

* Update per review comments
1) Added new args with options
2) Handle PORT possible being empty
3) Exhibit new behavior only if both version & platform are given.

* Drop redundant quotes
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 24, 2020
…nic-net#4337)

* Include platform info in name.
Get SONiC Version as parameter and use
Make additional tag as optional.
Avoid repetitions by using function.

* Per review comments, make SONIC_VERSION optional and added some comments.

* 1) Added additional params are optional
2) Handle DOCKER_IMAGE_TAG only if given
3) Use BUILD_NUMBER only if SONIC_VERSION not given
4) Tag with SONIC_VERSION if given.

Current behavior is not changed, unless SONIC_VERSION is given.

* Update per review comments
1) Added new args with options
2) Handle PORT possible being empty
3) Exhibit new behavior only if both version & platform are given.

* Drop redundant quotes
@renukamanavalan renukamanavalan deleted the push_docker branch April 17, 2022 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants