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 <noreply@anthropic.com>
This commit is contained in:
parent
7cf9b1b914
commit
1f3d6ce8ce
@ -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: |
|
||||
|
||||
@ -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: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user