POD
_________________________
| Container |
| ________ _________ |
| | Docker | | Actions | |
| | Dind | | Runner | |
| '________' '_________' |
'_________________________'
Available commands:
* Kubectl
* Terraform
Org Settings > Actions > Runner groups
User Settings > Developer Settings > Personal access tokens > Tokens (classic)
Choose: admmin:org
$ kubectl apply -f k8s/secret.yaml
Change ORGANIZATION_NAME and GROUP_NAME
$ kubectl apply -f k8s/deploy.yaml
name: runner-build
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get the version
id: get_tag_name
run: echo ::set-output name=GIT_TAG_NAME::${GITHUB_REF/refs\/tags\//}
- name: Build and Push
uses: RafikFarhad/[email protected]
with:
gcloud_service_key: ${{ secrets.ServiceAccountWithGCRAccess }}
registry: gcr.io
project_id: yourGCPProject
image_name: actions-runner
image_tag: latest,${{ steps.get_tag_name.outputs.GIT_TAG_NAME }}