Use network_flag in gcloud command #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |