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

packer build exit error without any explanation in CI #81

Open
namgk opened this issue Jun 22, 2023 · 0 comments
Open

packer build exit error without any explanation in CI #81

namgk opened this issue Jun 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@namgk
Copy link

namgk commented Jun 22, 2023

Is it mandatory to have HCP_CLIENT_ID for the build to succeed? It builds fine in my laptop but not in the Github Action. Why?

Expected Behavior

packer build should succeed.

Current Behavior

+ packer init main.pkr.hcl
Installed plugin github.com/hashicorp/amazon v1.2.6 in "/home/runner/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.2.6_x5.0_linux_amd64"
+ packer build main.pkr.hcl
Error: Process completed with exit code 1.

Steps to Reproduce

jobs:
  packer:
    runs-on: ubuntu-latest
    name: Run Packer
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup `packer`
        uses: hashicorp/setup-packer@main
        with:
          version: ${{ env.PACKER_VERSION }}

      - name: Build Image
        id: build
        run: |
          set -ex
          packer init $IMAGE_NAME.pkr.hcl
          packer build $IMAGE_NAME.pkr.hcl

Environment

see above

@namgk namgk added the bug Something isn't working label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant