From 1f3d6ce8ce818b7c07b3d6abc6a699faac8bf1a9 Mon Sep 17 00:00:00 2001 From: Mathias Beaulieu-Duncan Date: Tue, 3 Feb 2026 17:53:20 -0500 Subject: [PATCH] Fix apko tarball extraction with --strip-components=1 The binary is nested under apko_VERSION_linux_amd64/apko in the tarball, not at the root. Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/build.yaml | 2 +- .gitea/workflows/scout.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f70545b..c014e5b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -97,7 +97,7 @@ jobs: - name: Install apko run: | curl -fsSL https://github.com/chainguard-dev/apko/releases/latest/download/apko_$(curl -fsSL https://api.github.com/repos/chainguard-dev/apko/releases/latest | jq -r .tag_name | sed 's/^v//')_linux_amd64.tar.gz \ - | tar xz -C /usr/local/bin apko + | tar xz --strip-components=1 -C /usr/local/bin - name: Build apko base images run: | diff --git a/.gitea/workflows/scout.yaml b/.gitea/workflows/scout.yaml index 73cadfa..b371f80 100644 --- a/.gitea/workflows/scout.yaml +++ b/.gitea/workflows/scout.yaml @@ -77,7 +77,7 @@ jobs: - name: Install apko run: | curl -fsSL https://github.com/chainguard-dev/apko/releases/latest/download/apko_$(curl -fsSL https://api.github.com/repos/chainguard-dev/apko/releases/latest | jq -r .tag_name | sed 's/^v//')_linux_amd64.tar.gz \ - | tar xz -C /usr/local/bin apko + | tar xz --strip-components=1 -C /usr/local/bin - name: Build test image (${{ matrix.arch }}) run: |