forked from related-sciences/gce-github-runner
-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (25 loc) · 929 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
name: Test
on: [workflow_dispatch]
jobs:
create-runner:
runs-on: ubuntu-latest
outputs:
label: ${{ steps.create-runner.outputs.label }}
steps:
- id: create-runner
uses: nansen-ai/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"