-
Notifications
You must be signed in to change notification settings - Fork 150
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
ci: build container on release #396
Conversation
…build container; edit docker-compose
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 @TriplEight !! I don't fully understand all the pieces so worth a look over by a set of eyes with more workflows/docker experience
Sorry, it had to take so long to get here. |
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.
lgtm otherwise!
Now it can be merged. this is a bit tricky with that
So please ping me if this action will crash on release. |
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.
Looks good! May buildah take over the world!!😎
env: | ||
REGISTRY: docker.io/parity | ||
IMAGE_NAME: substrate-api-sidecar | ||
# IMAGE_TAG: ${{ matrix.tag }} |
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.
Is this supposed to be commented out?
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.
I left it as an explanatory comment
yarn build | ||
|
||
# --------------------------------- | ||
|
||
FROM node:15-alpine | ||
FROM docker.io/library/node:15-alpine |
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.
Am I right in thinking /library/
is equivalent to /_/
on hub.docker.com?
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.
yes, /_/
is the alias for /library/
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.
not sure about now, but earlier versions of buildah didn't have the docker registry configured by default and it was confusing. Buildah did not understand the docker-style shortened image addresses i.e. node:15
or parity/substrate-api-sidecar
and demanded a fqdn everywhere.
Then it softened and now buildah is able to deduct the image address (when you build manually with just node:15
in FROM
it will stop and ask where to take it from - QUAY or dockehub), but still it will throw an error on push
if you built an image without the registry address in name.
Closes: paritytech/ci_cd/issues/51
Closes: #333