Skip to content

Commit

Permalink
List projects and images
Browse files Browse the repository at this point in the history
  • Loading branch information
benjben committed Jan 3, 2025
1 parent 48c6eee commit 06d1ed3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
- name: SSH config for Ansible
run: mkdir ~/.ssh && echo -e "Host 127.0.0.1\nHostKeyAlgorithms +ssh-rsa\nPubkeyAcceptedKeyTypes +ssh-rsa" >> ~/.ssh/config

- name: List projects
run: gcloud project list

- name: List images
run: gcloud compute images list

- name: Publish artifact based on cloud and size
if: startsWith(github.ref, 'refs/tags/')
env:
Expand Down
7 changes: 7 additions & 0 deletions Packerfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
],
"post-processors": [
[
{
"type": "shell-local",
"only": ["googlecompute"],
"inline": [
"gcloud compute images list"
]
},
{
"type": "shell-local",
"only": ["googlecompute"],
Expand Down

0 comments on commit 06d1ed3

Please sign in to comment.