chainguard-images / actions

GitHub actions for the chainguard-images
Apache License 2.0
17 stars 23 forks source link

Error when using action: apko not found #137

Closed denhamparry closed 6 months ago

denhamparry commented 6 months ago

Description

When using the apko-publish action, the following error is returned:

/bin/sh: /usr/bin/apko: not found

When debugging the issue, it appears that the image wolfi-dev/sdk should be used instead of wolfi-dev/apko:

echo PLEASE USE ghcr.io/wolfi-dev/sdk INSTEAD; exit 1

❯ crane config ghcr.io/wolfi-dev/apko:latest | jq .                   
{
  "architecture": "amd64",
  "author": "github.com/chainguard-dev/apko",
  "created": "2024-05-13T17:38:35Z",
  "history": [
    {
      "author": "apko",
      "created": "2024-05-13T17:38:35Z",
      "created_by": "apko",
      "comment": "This is an apko single-layer image"
    }
  ],
  "os": "linux",
  "rootfs": {
    "type": "layers",
    "diff_ids": [
      "sha256:b1e08228bcaad8a845ac36d9c2cfdb7da7d040e1311ed42fd79b1fbcb2851763"
    ]
  },
  "config": {
    "Cmd": [
      "-c",
      "echo PLEASE USE ghcr.io/wolfi-dev/sdk INSTEAD; exit 1"
    ],
    "Entrypoint": [
      "/bin/sh"
    ],
    "Env": [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
      "SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
    ]
  }
}
StevenPaugh commented 6 months ago

+1 here. Seeing the same behavior that started some time within the last few days.