Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add input variable of glueops_codespace_tag to all workflows. #211

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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