From 9ebe7087419260a42c7b11d8122540e3cb76913c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 16 Feb 2023 14:31:41 -0500 Subject: [PATCH] fix: run packer validate with access to the DO token Without this, it fails when initializing the builder. --- .github/workflows/lint.yml | 2 ++ .github/workflows/release.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4d287b5d9..2ed0a039b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -47,6 +47,8 @@ jobs: - name: Run packer init run: "make image/init/digitalocean" - name: Run `packer validate` + env: + DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }} run: "make image/validate/digitalocean" shellcheck: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4a211334..564183793 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,6 +90,7 @@ jobs: - name: Run `packer validate` env: + DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }} PKR_VAR_dokku_version: ${{ needs.release.outputs.version }} run: "make image/validate/digitalocean"