Skip to content

Commit

Permalink
Allow for custom toolset image to be hosted in a selected project
Browse files Browse the repository at this point in the history
  • Loading branch information
pacphi committed Apr 24, 2024
1 parent 4bb36a3 commit 9c2918c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/google-ubuntu-22_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: "build-toolset-image"
on:
workflow_dispatch:
inputs:
project-id:
description: "The project where you want this image to be hosted"
required: true
machine-type:
description: "The machine type used to build the image"
required: true
Expand Down Expand Up @@ -176,6 +179,6 @@ jobs:
run: |
echo '${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}' | base64 -d > ./creds.json
export GOOGLE_APPLICATION_CREDENTIALS="./creds.json"
packer build -only=standard.* -var "image_name=k8s-toolset-image" -var "machine_type=${{ github.event.inputs.machine-type }}" -var "zone=${{ github.event.inputs.zone }}" .
packer build -only=standard.* -var "project_id=${{ github.event.inputs.project-id }}"" -var "image_name=k8s-toolset-image" -var "machine_type=${{ github.event.inputs.machine-type }}" -var "zone=${{ github.event.inputs.zone }}" .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9c2918c

Please sign in to comment.