armbian-build/.github/workflows
dependabot[bot] 0359e2241b Bump ossf/scorecard-action from 2.1.3 to 2.2.0
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.3 to 2.2.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/v2.1.3...v2.2.0)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 21:19:49 +02:00
..
build-board-list.yml Limit execution to main branch only 2023-05-04 16:44:44 +02:00
build-train.yml Limit execution to branch main 2023-04-21 14:23:13 +02:00
forked-helper.yml Bump peter-evans/repository-dispatch from 1 to 2 (#3891) 2022-06-11 18:16:04 +02:00
kernel-security-analysis-pr.yml Bump tj-actions/changed-files from 36 to 37 2023-06-26 21:18:49 +02:00
labeler.yml Bump actions/labeler from 3 to 4 (#3889) 2022-06-11 18:15:18 +02:00
lint-scripts-pr.yml Bump tj-actions/changed-files from 36 to 37 2023-06-26 21:18:49 +02:00
open-jira-ticket.yml Open a Jira ticket when GitHub issue is raised (#4887) 2023-03-02 19:09:55 +01:00
README.md Update documentation for prepare self hosted runner (#4053) 2022-08-08 08:18:30 +02:00
rebase.yml Bump cirrus-actions/rebase from 1.7 to 1.8 (#4592) 2022-12-20 10:35:51 +01:00
scorecard.yml Bump ossf/scorecard-action from 2.1.3 to 2.2.0 2023-06-26 21:19:49 +02:00

Runners requirements

  • big (6-16 cores, 64Gb SSD, 16Gb memory, 2Gb swap)
  • small (4 cores, 64Gb SSD, 8Gb memory, 2Gb swap)

Preparation

Adding x86 runner to your Jammy VM (check here if any changes):

$ mkdir actions-runner 
$ cd actions-runner
$ curl -o actions-runner-linux-x64-2.294.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.294.0/actions-runner-linux-x64-2.294.0.tar.gz
$ tar xzf ./actions-runner-linux-x64-2.294.0.tar.gz

Configuration

Once asked, tag your runner accordingly:

  • small
  • big
  • arm64

Start the configuration experience

$ ./config.sh --url https://github.com/armbian --token XXXXXXXXXXXXXXXXXXXXXXXXXXX

You need to get a valid token from our DevOps team to proceed.

Create startup scripts

sudo ./svc.sh install # install
sudo ./svc.sh start   # start
sudo ./svc.sh status  # check

Use workflows in forked repositories

forked-helper.yml workflow helper can help to run custom workflows on the forked repositories.

  1. Set ARMBIAN_SELF_DISPATCH_TOKEN secret on your repository with security_events permissions.
  2. Helper will dispatch repository_dispatch event armbian on push, release, deployment, pull_request and workflow_dispatch events. All needed event details you can find in client_payload property of the event.
  3. Create empty default branch in forked repository
  4. Create workflow with repository_dispatch in default branch.
  5. Run any need actions in this workflow.

Workflow example:

name: Test Armbian dispatch

on:
  repository_dispatch:
    types: ["armbian"]

jobs:
  show-dispatch:
    name: Show dispatch event details
    runs-on: ubuntu-latest
    steps:
      - uses: hmarr/debug-action@v2