Skip to content

Commit

Permalink
list disks
Browse files Browse the repository at this point in the history
  • Loading branch information
benjben committed Jan 6, 2025
1 parent 41cac22 commit 81b1a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,18 @@ jobs:
go test *.go
#- name: Provision a local Mini instance
# run: ansible-playbook -i $GITHUB_WORKSPACE/provisioning/inventory $GITHUB_WORKSPACE/provisioning/local_setup.yml --connection=local --become
- name: Provision a local Mini instance
run: ansible-playbook -i $GITHUB_WORKSPACE/provisioning/inventory $GITHUB_WORKSPACE/provisioning/local_setup.yml --connection=local --become

- id: 'auth'
if: startsWith(github.ref, 'refs/tags/')
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON_BASE64 }}'
service_account: '[email protected]'

- name: 'Set up Cloud SDK'
if: startsWith(github.ref, 'refs/tags/')
uses: 'google-github-actions/setup-gcloud@v2'
with:
project_id: snowplow-images

- name: Enable Cloud Resource Manager API
run: gcloud services enable cloudresourcemanager.googleapis.com --project snowplow-images

- name: SSH config for Ansible
run: mkdir ~/.ssh && echo -e "Host 127.0.0.1\nHostKeyAlgorithms +ssh-rsa\nPubkeyAcceptedKeyTypes +ssh-rsa" >> ~/.ssh/config
Expand Down
2 changes: 1 addition & 1 deletion Packerfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"type": "shell-local",
"only": ["googlecompute"],
"inline": [
"gcloud compute images export --destination-uri gs://snowplow-mini/snowplow-mini-0-22-0-rc2-large-1735923365.tar.gz --image snowplow-mini-0-22-0-rc2-large-1735923365 --project snowplow-images"
"gcloud compute disks list"
]
},
{
Expand Down

0 comments on commit 81b1a3b

Please sign in to comment.