-
Notifications
You must be signed in to change notification settings - Fork 171
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
Fix arosvc registry push #923
Conversation
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.
Thanks for figuring this out
pkg/env/dev.go
Outdated
if override != "" { | ||
return override | ||
} | ||
if tag == "unknown" { | ||
tag = "latest" | ||
} | ||
|
||
return fmt.Sprintf("%s.azurecr.io/aro:%s", d.acrName, version.GitCommit) |
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.
return fmt.Sprintf("%s.azurecr.io/aro:%s", d.acrName, version.GitCommit) | |
return fmt.Sprintf("%s.azurecr.io/aro:%s", d.acrName, tag) |
saying that I am not convinced we need this, GitCommit is not used in the CI case..
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.
It is used in local run. If you are running from check-out replica it is trying to pull that commit image. But once you change any file in the repo but don't commit - it gets unknown.
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.
ok, but that is as a developer and you should just be setting ARO_IMAGE=
can you remove this and let's merge the first chuck and chat about this after..
I had this earlier and Jim didn't like it and said that devs should just always set ARO_IMAGE
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.
If developers should always set it, let's add it default and people can override. We already have enough information for people to sink it. Because now behaviour is questionable. Previously - default settings - all works, now - not so much.
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.
#925 to discuss
dbb9398
to
863f26d
Compare
Fixes the ability to publish
aro:master
images intoacrint
@asalkeld this one is for you urgent.
Currently logic in make file do now work because azure CI checksout commit id (not branch reference). See checkout step in ci[1]
So because of this we never publish an image with
latest
tag.I am removing BRANCH reference and using CI native way to set BRACH name. If can think a better way to do so, please push ontop or open your solution.
The second commit enables to run RP with
latest
image If I'm running RP from dirty copy (working in the code). Otherwise I getaro:unknown
if I'm running from non-committed code.