-
Notifications
You must be signed in to change notification settings - Fork 5
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
BUG: deploying onyo-demo is not working anymore #525
Comments
The access token may have expired. I can look at this later. |
Ok, I found a better solution (because the access tokens have a max ttl of 1 year). GitHub automatically sets up tokens to allow jobs to push back to their own repo. So the ideal solution is:
This way, it never expires, and we don't need to deal with secrets across repos. |
Since workflows are defined in the directory So while I like your proposed solution, it needs a bit more effort to make sure it actually works like we want it to ;) |
It can be stored in a different branch. |
A little update on the progress: This contains a branch "setup" with a workflow which pulls the current demo repository and pushes it to the main branch of the test-repo.
|
I have somewhat bad news in regards to the new idea of how to deploy the onyo demo. In short: "scheduling" a CI workflow (automatically starting it regularly like cron) does exclusively work for the default branch (most often main), which is also the branch that gets displayed by default when going to an URL for a repo without specifying the path (https://github.com/psyinfra/onyo shows the main branch). That leaves us with the following possibilites:
|
I think option 1 is what we should pursue. This is a use-case for |
Cool, I will work on this later then. The necessary steps as far as I see them are:
|
I am stil trying to identify the exact problem, but want to share/document what I found in case somebody else knows how to solve the problem.
Here an example deploy-demo workflow that failed:
https://github.com/psyinfra/onyo/actions/runs/7625219190/job/20769022194
Scrolling to the end shows this error at step "push to onyo-demo":
This fails because of these two lines in
.github/workflows/deploy_demo.yaml
; the second line is the point of failure, but as far as I can see, the problem is setting the location of the onyo repo incorrectly:The text was updated successfully, but these errors were encountered: