GithubHelp home page GithubHelp logo

Comments (18)

TheConnMan avatar TheConnMan commented on August 16, 2024 1

Still on my todo list, I've been punting it week to week. I should be coming out of the woods in the next week to tackle it.

from chef-netuitive.

TheConnMan avatar TheConnMan commented on August 16, 2024

Can you push to the supermarket during the Travis deploy step on tags only? An example of this is pushing to https://rubygems.org in the Ruby API project. That way there isn't another manual deploy step, just the normal tagging.

As far as requests for this feature I haven't heard any, @createor would know better than anyone.

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

the problem there is credentials which I suppose we could create a bot for that and store it encrypted in travis. The thing is that we will still want to manually evaluate changelog + versioning to continue to align to semver. But it could certainly be as simple as a single cli call so it is not much more effort once it is setup.

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

Also we are already doing at least 2 things manually:

  • updating changelog
  • tagging git

I suppose we might be figure out some way to have it run only on tags (I have only done that with the rubygems provider) that would be a very nice touch so its just prep work before release and then it releases everything but tbh we could just add that as a target in our Makefile as make release which would tag and push to supermarket.

from chef-netuitive.

Grumblesmith avatar Grumblesmith commented on August 16, 2024

I haven't seen any requests to be able to get this from supermarket. Would it being in supermarket make it easier to include in a wrapper cookbook?

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

If it's not in the supermarket you must tell it where it is like this: https://github.com/CloudCruiser/ops_chef-cc_netuitive/blob/master/Berksfile#L3 as opposed to just cookbook 'netuitive'. I have honestly not really cared or messed around with the supermarket but someone required me to publish some cookbooks to the supermarket so I figured out how to do it and was curious if people were interested in doing it since it is honestly really not much more work.

from chef-netuitive.

Grumblesmith avatar Grumblesmith commented on August 16, 2024

If it's not much extra work (and especially if we can automate it as part of the travis build) I'd vote 👍

from chef-netuitive.

TheConnMan avatar TheConnMan commented on August 16, 2024

@majormoses That Travis CI file has creds encrypted in it, take a look at https://docs.travis-ci.com/user/encryption-keys/.

I do believe that git tagging should always be a manual operation. As far as a changelog update I've been using GitHub Releases to convey changelog information instead of a history file. Either is a manual, human interpretation of changes, so I don't see too much difference between them. Both manual though.

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

Ya I am familiar with using encrypted vars in for rubygems api keys what we need here would be an encrypted file like this: https://docs.travis-ci.com/user/encrypting-files/ as stove needs an actual pem file rather than it's contents.

Regarding Changelog + tag I agree it should be manual and maybe in that case we just add it to the Makefile so that when we tag stove can just publish to supermarket in one fell swoop. I would imagine it look something like this:

release: gittag ## tag and push cookbook to supermarket
    bundle exec stove stove --no-git

If you are wondering why we are not just using the git module built into stove I personally find the extra "v" in front of the version useless and make gittag allows you to re-tag (stove does not) which I discovered after dealing with an auth issue caused by: chef-boneyard/stove#120 for a different project.

from chef-netuitive.

TheConnMan avatar TheConnMan commented on August 16, 2024

Whether you tag and publish locally with one command or publish based on a tag push you still get both done with one manual step. I personally prefer publishing in the Travis build because git tagging doesn't require a working Ruby environment (which I rarely have) whereas bundle does. Also using the Travis file allows any maintainer to publish because the creds are embedded in the project. Otherwise we'd need a way to share credentials.

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

I looked into it and there is a chef supermarket travis deploy provider so we should just run that on tags and then the manual steps are just update changelog, commit, push, and tag

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

I pushed an initial version to the supermarket, can you guys setup the bot and travis that way Netuitive owns it going forward (in case I ever want to no longer maintain this cookbook at some point in the future).

from chef-netuitive.

TheConnMan avatar TheConnMan commented on August 16, 2024

Yes, I'll take care of it and I'll email you the service account when I make it so you can add it as a collaborator.

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

@TheConnMan pinging to see where you are at

from chef-netuitive.

TheConnMan avatar TheConnMan commented on August 16, 2024

@majormoses Our service account username is metricly

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

@TheConnMan I am not finding this metricly user:
image

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

image

from chef-netuitive.

majormoses avatar majormoses commented on August 16, 2024

@TheConnMan ping still need the username in order to add it as a collaborator and make this all more automatic. In the mean time I can keep pushing to the supermarket manually.

from chef-netuitive.

Related Issues (18)

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.