GithubHelp home page GithubHelp logo

Comments (8)

henryclw avatar henryclw commented on August 19, 2024

You may check your docker hub repo to see what tags there are

https://hub.docker.com/r/yunyoujun/cook/tags

from cook.

YunYouJun avatar YunYouJun commented on August 19, 2024

Yeah, i plan to remove enable={{is_default_branch}} .

Because ci will only be triggered by the main branch.

push:
branches: [main]
pull_request:
branches: [main]

Could there be other issues?

from cook.

henryclw avatar henryclw commented on August 19, 2024

Yeah, i plan to remove enable={{is_default_branch}} .

Because ci will only be triggered by the main branch.

push:
branches: [main]
pull_request:
branches: [main]

Could there be other issues?

But the latest tag of docker is very important, because the default tag of docker image is latest

Say you run docker pull nginx, what actually it is doing is docker pull nginx:latest

So what do you want to do with the latest tag? Normally this is the latest release or the master/main branch.

And yes, currently this is only triggered by the main branch push/pr, it's all up to you to decide what kind of docker image you want to provide, if you want to provide the dev branch as well, just modify these lines of the config file.

I would recommend the latest tag to be associated with the main branch, and the dev is associated with dev branch. For normal users, just pull the latest tag, and for developer or people who want to try out the latest features, pull the dev tag. This is kind of like the stable release and the nightly release.

from cook.

YunYouJun avatar YunYouJun commented on August 19, 2024

I don't think this contradicts what you said, I just want to remove enable={{is_default_branch}}, because the default enable is true, so it is still bound to the main branch, and main is also the representative of latest.

Was there any misunderstanding during this period?

from cook.

henryclw avatar henryclw commented on August 19, 2024

I don't think this contradicts what you said, I just want to remove enable={{is_default_branch}}, because the default enable is true, so it is still bound to the main branch, and main is also the representative of latest.

Was there any misunderstanding during this period?

Oh, so what you want is only update docker image when the main branch is updated. And this means there's only one kind of docker image, the latest/main version, no nightly/dev version, right?

from cook.

YunYouJun avatar YunYouJun commented on August 19, 2024

Yeah, I created a new dev branch for development and merged into the main branch after stabilization, to avoid too many unnecessary docker builds.

from cook.

henryclw avatar henryclw commented on August 19, 2024

Okay, then this will be fine. Thank you for your kind reply, it's very nice of you.

from cook.

YunYouJun avatar YunYouJun commented on August 19, 2024

Thanks for your feedback. I set it in d2534f7.

from cook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.