digger icon indicating copy to clipboard operation
digger copied to clipboard

Error on Self-Hosted ARM Runners

Open abasu0713 opened this issue 3 months ago • 1 comments

Summary

I see that the binaries for digger exists for linux/arm64.. But on the actions it's still pulling x64 flavor.. I am running this on a self-hosted runner on Kubernetes with nodes of type Arm64.

Is there a way to tell the action to pull an arm image?

Run actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b
Run mkdir -p $GITHUB_WORKSPACE/cache
Run set -euo pipefail
🔧 Downloading Digger CLI...
Runner OS: Linux, Arch: ARM64, Digger Version: vLatest
Downloading from: https://github.com/diggerhq/digger/releases/download/vLatest/digger-cli-Linux-X64
Successfully downloaded and prepared Digger CLI
/home/runner/_work/_temp/d4589813-0c60-4539-b05b-4d8b1b3de568.sh: line 48: /home/runner/_work/release-forge/release-forge/digger: cannot execute binary file: Exec format error
name: Digger Workflow

on:
  workflow_dispatch:
    inputs:
      spec:
        description: 'The specification for the deployment'
        required: true
      run_name:
        description: 'The name of the run'
        required: true

run-name: ${{ github.event.inputs.run_name }}

jobs:
  digger-job:
    runs-on: self-hosted-terraform-runner
    permissions:
      contents: write      # required to merge PRs
      actions: write       # required for plan persistence
      id-token: write      # required for workload-identity-federation
      pull-requests: write # required to post PR comments
      issues: read         # required to check if PR number is an issue or not
      statuses: write      # required to validate combined PR status

    steps:
      - uses: actions/checkout@v4
      - name: ${{ fromJSON(github.event.inputs.spec).job_id }}
        run: echo "job id ${{ fromJSON(github.event.inputs.spec).job_id }}"
      - uses: diggerhq/digger@vLatest
        with:
          digger-spec: ${{ inputs.spec }}
          setup-terraform: true
          terraform-version: v1.5.6
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Would appreciate any help.

abasu0713 avatar Oct 13 '25 00:10 abasu0713

possible in the latest version ! You can specify digger-os and digger-arch as arguments to the action! https://github.com/diggerhq/digger/pull/2311/files

motatoes avatar Oct 13 '25 02:10 motatoes