diff --git a/.github/workflows/packer-hetzner.yml b/.github/workflows/packer-hetzner.yml index 4f1b15d..9d10012 100644 --- a/.github/workflows/packer-hetzner.yml +++ b/.github/workflows/packer-hetzner.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/packer-test.yml b/.github/workflows/packer-test.yml index 1c32cfc..f1d1e8e 100644 --- a/.github/workflows/packer-test.yml +++ b/.github/workflows/packer-test.yml @@ -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 }}