Skip to content

Commit

Permalink
feat: add input variable of glueops_codespace_tag to all workflows.
Browse files Browse the repository at this point in the history
feat: add support to trigger aws, hetzner, and qemu workflows manually
  • Loading branch information
venkatamutyala authored Nov 25, 2024
1 parent f0934f4 commit 06d410b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/packer-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
workflows: ["Build and Publish devcontainer image"]
types:
- completed
workflow_dispatch:
inputs:
glueops_codespace_tag:
description: 'Enter the github.com/glueops/codespaces tag to use (e.g. v0.60.0)'
required: false

jobs:
build:
Expand All @@ -25,7 +30,7 @@ jobs:

- name: Run `packer build`
id: build
run: packer build -var glueops_codespaces_container_tag=${{ github.event.workflow_run.head_branch }} aws.pkr.hcl
run: packer build -var glueops_codespaces_container_tag=${{ inputs.glueops_codespace_tag || github.event.workflow_run.head_branch }} aws.pkr.hcl
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
9 changes: 7 additions & 2 deletions .github/workflows/packer-hetzner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
workflows: ["Build and Publish devcontainer image"]
types:
- completed
workflow_dispatch:
inputs:
glueops_codespace_tag:
description: 'Enter the github.com/glueops/codespaces tag to use (e.g. v0.60.0)'
required: false

jobs:
build:
Expand All @@ -25,12 +30,12 @@ jobs:

- name: Run `packer build stage`
id: build_stage
run: packer build -var glueops_codespaces_container_tag=${{ github.event.workflow_run.head_branch }} hetzner.pkr.hcl
run: packer build -var glueops_codespaces_container_tag=${{ inputs.glueops_codespace_tag || github.event.workflow_run.head_branch }} hetzner.pkr.hcl
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN_STAGE }}

- name: Run `packer build prod`
id: build_prod
run: packer build -var glueops_codespaces_container_tag=${{ github.event.workflow_run.head_branch }} hetzner.pkr.hcl
run: packer build -var glueops_codespaces_container_tag=${{ inputs.glueops_codespace_tag || github.event.workflow_run.head_branch }} hetzner.pkr.hcl
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN_PROD }}
2 changes: 1 addition & 1 deletion .github/workflows/packer-qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:
inputs:
glueops_codespace_tag:
description: 'Enter the Codespace tag name e.g. v0.60.0'
description: 'Enter the github.com/glueops/codespaces tag to use (e.g. v0.60.0)'
required: false

jobs:
Expand Down

0 comments on commit 06d410b

Please sign in to comment.