Skip to content

Commit

Permalink
fix: update hetzner packer github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NichArchA82 committed Oct 5, 2024
1 parent 6e91ec6 commit 99a6796
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/packer-hetzner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ jobs:
id: init
run: packer init hetzner.pkr.hcl

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

- name: Run `packer build prod`
id: build
run: packer build -var glueops_codespaces_container_tag=${{ github.event.workflow_run.head_branch }} hetzner.pkr.hcl
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN_PROD }}
11 changes: 8 additions & 3 deletions .github/workflows/packer-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ jobs:
id: init
run: packer init hetzner.pkr.hcl

- name: Run `packer build`
- name: Run `packer build stage`
id: build
run: packer build -var glueops_codespaces_container_tag=v0.56.0 hetzner.pkr.hcl
env:
HCLOUD_TOKEN_STAGE: ${{ secrets.HCLOUD_TOKEN_STAGE }}
HCLOUD_TOKEN_PROD: ${{ secrets.HCLOUD_TOKEN_PROD }}
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN_STAGE }}

- name: Run `packer build prod`
id: build
run: packer build -var glueops_codespaces_container_tag=v0.56.0 hetzner.pkr.hcl
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN_PROD }}

0 comments on commit 99a6796

Please sign in to comment.