Skip to content
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

auto-update the fossgis instances #4717

Merged
merged 10 commits into from
May 8, 2024
Merged

auto-update the fossgis instances #4717

merged 10 commits into from
May 8, 2024

Conversation

nilsnolde
Copy link
Member

follow-up to #4716. will now try to run the action itself.

kevinkreiser
kevinkreiser previously approved these changes May 2, 2024
Copy link
Member

@kevinkreiser kevinkreiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feel free to merge this if it helps testing!

@nilsnolde
Copy link
Member Author

I could manually trigger the workflow from this branch, but thanks. seems to work now. what it does on pushes to master (and only on changes to interesting directories):

  • ssh's into each machine with a repo-wide github secret for the private key
  • pulls, builds and installs the project on each machine
  • on the service machine it re-generates the valhalla config, on the builder machine the forever-looping script is doing that itself

do note, this won't have an immediate effect on either the service or the builder. we don't restart the processes, we wait for the next planet graph build to finish which will automatically restart all processes on both machines so the changes will be picked up then.

from my side, this is good for merging @kevinkreiser, but feel free to look over the 2 whole files (which are also this PR's changes).

@nilsnolde
Copy link
Member Author

the script runs as sudo because of the installation. I know I could make /usr/local allowed for the user, but doesn't really matter IMO, the workflow can't run from a fork in a PR, only maintainers have access to the secrets. but I'm 99% sure that master merges will run regardless if from a fork or not.

git submodule update --init --recursive

# remove the build folder first
rm -r "${src_dir}"/build
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ccache is installed

@chrstnbwnkl chrstnbwnkl merged commit 6fbe96e into master May 8, 2024
7 of 9 checks passed
@chrstnbwnkl chrstnbwnkl deleted the nn-update-fossgis-gha branch May 8, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants