Giter VIP home page Giter VIP logo

Comments (8)

LongLiveCHIEF avatar LongLiveCHIEF commented on August 14, 2024

Looks like there's no one perfect way to do this, but several approaches that would probably work:

  1. Just set a schedule to watch for releases
  2. Use a workflow in the octoprint/octprint project to send a workflow_dispatch or repository_dispatch event on release of octoprint/octoprint, to the octoprint/docker to run specific workflows in specific branches

from octoprint-docker.

LongLiveCHIEF avatar LongLiveCHIEF commented on August 14, 2024

May also be able to use the discord bot for octoprint/octoprint to actually trigger workflows in octoprint/docker 🤔 The key is making sure the payload is formatted correctly, and that may actually be easier to do using the discord bot than github itself (github actions really needs the ability to trigger on organization events and not just repository events)

from octoprint-docker.

LongLiveCHIEF avatar LongLiveCHIEF commented on August 14, 2024

https://github.community/t/run-action-on-event-in-another-repository/17667

from octoprint-docker.

eduncan911 avatar eduncan911 commented on August 14, 2024

Yes, the second option works well. I use it at work for several private repos. The one repo they all push the event to just "queues up" the releases. This is better than a polling method IMO as it keeps an order to the queue

I'd offer to help but I'm swamped with face shields for schools at the moment.

from octoprint-docker.

eaceaser avatar eaceaser commented on August 14, 2024

I see that OctoPrint/OctoPrint#3667 is out for review -- are you working on the octoprint/octoprint-docker side of things to handle the event? If not I can take a stab at it

from octoprint-docker.

LongLiveCHIEF avatar LongLiveCHIEF commented on August 14, 2024

from octoprint-docker.

LongLiveCHIEF avatar LongLiveCHIEF commented on August 14, 2024

@eaceaser sorry for the short reply earlier, I was mobile. I am working on creating a matrix of tags from the same upstream release. I've actually been live-streaming my work as I go (part 1, part 2, but I tend to only work on OctoPrint stuff on the weekends only, and i didn't finish in time last weekend so I'll be wrapping it up friday or saturday.

This has actually inspired me to create a new github action that I call Tagging Strategy (HackerHappyHour/tagging-strategy), that will do what I'm looking to do here.

(Basically, take a release event such as 1.4.1, and produce image tags all pointing to the same digest for 1, 1.4, 1.4.1 and latest, as well as the same tags for any variants. )

I've cloned both OctoPrint and octoprint-docker into the HackerHappyHour org that I own so I can trigger release events from that octoprint fork for testing.

If you want to contribute or collaborate now that you're up to speed, just hop into discord.octoprint.org and say hello to @CHIEFdotJS in the #dev-misc channel and we can figure out how to insert you into this WIP (what fork & branch you can branch from).

from octoprint-docker.

LongLiveCHIEF avatar LongLiveCHIEF commented on August 14, 2024

fixed via #59

from octoprint-docker.

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.