Skip to content

Commit

Permalink
Feat/build hetzner in multi projects (#158)
Browse files Browse the repository at this point in the history
* feat: add another env variable for multiple projects

* feat: add tokens for multi builder

* chore: create packer build test action

* fix: env token var

* chore: Revert "feat: add tokens for multi builder"

* fix: update hetzner packer github actions

* fix: github action ids not unique

* fix: Delete .github/workflows/packer-test.yml as it's been consolidated into the existing file

---------

Co-authored-by: Venkat <[email protected]>
  • Loading branch information
NichArchA82 and venkatamutyala authored Oct 5, 2024
1 parent b2b506b commit 68e2cf8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/packer-hetzner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ jobs:
id: init
run: packer init hetzner.pkr.hcl

- name: Run `packer build`
id: build
- 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
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
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
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN_PROD }}

0 comments on commit 68e2cf8

Please sign in to comment.