diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c37e6893..9816af6b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: 'snowplow-mini@snowplow-images.iam.gserviceaccount.com' - 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 diff --git a/Packerfile.json b/Packerfile.json index fc180f54..e53d6966 100644 --- a/Packerfile.json +++ b/Packerfile.json @@ -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" ] }, {