Skip to content

Commit ae9c837

Browse files
committed
Attempt to fix workflow by moving to debian 13
Also move some steps to pre_startup_script.
1 parent 4c7443a commit ae9c837

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/create-source-data.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,30 @@ jobs:
2525
service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
2626
- name: Create Runner on GCP
2727
id: create-runner
28-
uses: related-sciences/gce-github-runner@315103483ed108ba74207893d8ad328b93b2c07e
28+
uses: related-sciences/gce-github-runner@6e1967dfe347ba04edf59b6d7acc0bafa028642f
2929
with:
3030
token: ${{ steps.app-token.outputs.token }}
3131
vm_name_prefix: gh-create-source
32-
image_project: ubuntu-os-cloud
33-
image_family: ubuntu-2404-lts-amd64
32+
image_project: debian-cloud
33+
image_family: debian-13
3434
machine_zone: europe-west4-b
3535
machine_type: e2-standard-4
3636
runner_service_account: ${{ vars.RUNNER_GCP_SERVICE_ACCOUNT }}
3737
preemptible: true
3838
ephemeral: true
3939
boot_disk_type: pd-ssd
4040
disk_size: 150GB
41+
pre_startup_script: |
42+
apt-get update
43+
apt-get install -y git curl
44+
# Not yet in debian 13 https://github.com/GoogleCloudPlatform/ops-agent/issues/2060
45+
# curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
46+
# bash add-google-cloud-ops-agent-repo.sh --also-install
47+
# rm add-google-cloud-ops-agent-repo.sh
4148
export-pgdumps:
4249
needs: create-runner
4350
runs-on: ${{ needs.create-runner.outputs.label }}
4451
steps:
45-
- name: Install Ops Agent
46-
run: |
47-
curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
48-
sudo bash add-google-cloud-ops-agent-repo.sh --also-install
4952
# We are running on barebones VM, so there is more scripting involved
5053
# then needed if we were running on standard GitHub Actions runner.
5154
- name: Checkout source

0 commit comments

Comments
 (0)