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

Armbian internal: GitHub runners deployment script #364

Merged
merged 3 commits into from
Jan 12, 2025
Merged

Conversation

igorpecovnik
Copy link
Member

@igorpecovnik igorpecovnik commented Jan 9, 2025

Description

We have several scripts that are used only for internal processes. This script is not interesting for end users, so it doesn't need to have menu entry. I put it into the system folder but for the future we might have this separately.

Install two runners with name "runner.
armbian-config --api module_armbian_runners install gh_token=TOKEN runner_name=runner stop=02

Purge them:
armbian-config --api module_armbian_runners purge gh_token=TOKEN runner_name=runner stop=02

Usage: module_armbian_runners <command> [switches]
Commands:  install purge
Available commands:

	install		- Install or reinstall runners.
	purge		- Purge runners.

Available switches:

	gh_token	- token with rights to admin runners.
	runner_name	- name of the runner (series).
	start		- start of serie (01).
	stop		- stop (01).
	label_primary	- runner tags for first runner (alfa).
	label_secondary	- runner tags for all others (images).
	organisation	- GitHub organisation name (armbian).
	owner		- GitHub owner.
	repository	- GitHub repository (if adding only for repo).

Issue reference: Refference: https://github.com/armbian/scripts/blob/main/generate-runners/deploy.sh

Implementation Details

  • install docker
  • prepare os, install runner(s)

Testing Procedure

  • Install and remove

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have ensured that my changes do not introduce new warnings or errors
  • No new external dependencies are included
  • Changes have been tested and verified
  • I have included necessary metadata in the code, including associative arrays

@github-actions github-actions bot added the size/medium PR with more then 50 and less then 250 lines label Jan 9, 2025
@igorpecovnik igorpecovnik added 02 Milestone: First quarter release Framework Framework components Work in progress Unfinished / work in progress and removed size/medium PR with more then 50 and less then 250 lines labels Jan 9, 2025
@github-actions github-actions bot added the size/medium PR with more then 50 and less then 250 lines label Jan 9, 2025
@igorpecovnik igorpecovnik force-pushed the runners branch 21 times, most recently from f7c36b9 to 6a77f14 Compare January 9, 2025 21:09
@github-actions github-actions bot added size/large PR with 250 lines or more and removed size/medium PR with more then 50 and less then 250 lines labels Jan 12, 2025
@github-actions github-actions bot added size/medium PR with more then 50 and less then 250 lines and removed size/large PR with 250 lines or more labels Jan 12, 2025
@igorpecovnik igorpecovnik force-pushed the runners branch 7 times, most recently from fb59592 to 9ee01ee Compare January 12, 2025 10:11
@igorpecovnik igorpecovnik added Needs review Seeking for review and removed Work in progress Unfinished / work in progress labels Jan 12, 2025
@igorpecovnik igorpecovnik marked this pull request as ready for review January 12, 2025 10:14
@igorpecovnik igorpecovnik force-pushed the runners branch 3 times, most recently from e8cdff2 to 22005f5 Compare January 12, 2025 10:19
@igorpecovnik igorpecovnik changed the title Armbian internal: port runners deployment script Armbian internal: GitHub runners deployment script Jan 12, 2025
@igorpecovnik igorpecovnik force-pushed the runners branch 5 times, most recently from bfb0e14 to 74d9d82 Compare January 12, 2025 10:30
@igorpecovnik igorpecovnik added Ready to merge Reviewed, tested and ready for merge and removed Needs review Seeking for review labels Jan 12, 2025
@igorpecovnik igorpecovnik merged commit 4e1ed48 into main Jan 12, 2025
16 checks passed
@igorpecovnik igorpecovnik deleted the runners branch January 12, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
02 Milestone: First quarter release Framework Framework components Ready to merge Reviewed, tested and ready for merge size/medium PR with more then 50 and less then 250 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants