forked from related-sciences/gce-github-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 972 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Test
on:
workflow_dispatch:
push:
branches:
- main
jobs:
create-runner:
runs-on: ubuntu-latest
outputs:
label: ${{ steps.create-runner.outputs.label }}
steps:
- id: create-runner
uses: related-sciences/gce-github-runner@main
with:
token: ${{ secrets.GH_SA_TOKEN }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
image_project: ubuntu-os-cloud
image_family: ubuntu-2004-lts
# NOTE: if you do not want external IPs, you must configure your GCE project
# to allow access to the Internet e.g. via Cloud NAT, if you are fine
# with external IPs, no_external_address should be false (default).
no_external_address: true
test:
needs: create-runner
runs-on: ${{ needs.create-runner.outputs.label }}
steps:
- run: echo "This runs on the GCE runner VM"