GitHub/Actions: Difference between revisions
m tagged |
add several links to examples in docs |
||
| Line 4: | Line 4: | ||
While GitHub's hosted runners only include 'windows-latest', 'macos-latest' and Ubuntu Linux<ref>https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories</ref>, you can use a Docker Image ''inside'' Ubuntu to evaluate your action on a different flavor of Linux like Debian<ref> | While GitHub's hosted runners only include 'windows-latest', 'macos-latest' and Ubuntu Linux<ref>https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories</ref>, you can use a Docker Image ''inside'' Ubuntu to evaluate your action on a different flavor of Linux like Debian<ref> | ||
A snippet like this in your action will build the named image in the Ubuntu runner. | A snippet like this in your action will build the named image in the Ubuntu runner. Source: https://www.claudiokuenzler.com/blog/1381/how-to-run-github-ci-cd-workflows-actions-rocky-linux | ||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||
| Line 27: | Line 28: | ||
https://docs.github.com/en/actions | https://docs.github.com/en/actions | ||
[https://docs.github.com/en/actions/about-github-actions/understanding-github-actions Overview] | |||
[https://docs.github.com/en/actions/sharing-automations/reusing-workflows Reusing workflows] | |||
[https://github.com/actions/starter-workflows/blob/main/deployments/terraform.yml Terraform deployments] | |||
[https://github.com/actions/starter-workflows/blob/main/ci/docker-image.yml Build Docker image] | |||
[https://github.com/actions/starter-workflows/blob/main/ci/php.yml Run Composer] | |||
[https://github.com/actions/starter-workflows/tree/main/code-scanning Code scanning] (examples for lots of tools from psalm to sonarcube) | |||
[https://docs.github.com/en/actions/using-github-hosted-runners/connecting-to-a-private-network/about-private-networking-with-github-hosted-runners Private networking with Github-hosted runners] | |||
{{References}} | {{References}} | ||