Fix apko asset filename: include version number
Some checks failed
Check for Upstream Stable Updates / Check .NET stable releases (push) Successful in 1s
Check for Upstream Stable Updates / Check Wolfi package updates (push) Failing after 3s
Check for Upstream Stable Updates / Check Flutter stable releases (push) Successful in 2s
Check for Upstream Stable Updates / Rebuild and push all variants (apko/base.yaml, base) (push) Has been skipped
Check for Upstream Stable Updates / Rebuild and push all variants (apko/build.yaml, build) (push) Has been skipped
Check for Upstream Stable Updates / Rebuild and push all variants (apko/dotnet-runtime.yaml, dotnet-runtime) (push) Has been skipped
Check for Upstream Stable Updates / Rebuild and push all variants (apko/dotnet-sdk.yaml, dotnet-sdk) (push) Has been skipped
Check for Upstream Stable Updates / Rebuild and push all variants (apko/flutter-sdk.yaml, flutter-sdk) (push) Has been skipped
Check for Upstream Stable Updates / Create release for new Flutter version (push) Has been skipped
Some checks failed
Check for Upstream Stable Updates / Check .NET stable releases (push) Successful in 1s
Check for Upstream Stable Updates / Check Wolfi package updates (push) Failing after 3s
Check for Upstream Stable Updates / Check Flutter stable releases (push) Successful in 2s
Check for Upstream Stable Updates / Rebuild and push all variants (apko/base.yaml, base) (push) Has been skipped
Check for Upstream Stable Updates / Rebuild and push all variants (apko/build.yaml, build) (push) Has been skipped
Check for Upstream Stable Updates / Rebuild and push all variants (apko/dotnet-runtime.yaml, dotnet-runtime) (push) Has been skipped
Check for Upstream Stable Updates / Rebuild and push all variants (apko/dotnet-sdk.yaml, dotnet-sdk) (push) Has been skipped
Check for Upstream Stable Updates / Rebuild and push all variants (apko/flutter-sdk.yaml, flutter-sdk) (push) Has been skipped
Check for Upstream Stable Updates / Create release for new Flutter version (push) Has been skipped
Asset naming is apko_1.1.2_linux_amd64.tar.gz, not apko_linux_amd64.tar.gz. Strip the v prefix from the tag to build the correct filename. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
855564ecfd
commit
b2bf4e309a
@ -44,7 +44,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
APKO_ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
APKO_ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
||||||
APKO_VERSION=$(curl -fsSL "https://api.github.com/repos/chainguard-dev/apko/releases/latest" | jq -r '.tag_name')
|
APKO_VERSION=$(curl -fsSL "https://api.github.com/repos/chainguard-dev/apko/releases/latest" | jq -r '.tag_name')
|
||||||
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/${APKO_VERSION}/apko_linux_${APKO_ARCH}.tar.gz" | tar xz -C /usr/local/bin apko
|
APKO_VERSION_NUM="${APKO_VERSION#v}"
|
||||||
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/${APKO_VERSION}/apko_${APKO_VERSION_NUM}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
|
-o /tmp/apko.tar.gz
|
||||||
|
tar xzf /tmp/apko.tar.gz -C /usr/local/bin apko
|
||||||
|
rm /tmp/apko.tar.gz
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|||||||
@ -36,7 +36,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
APKO_ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
APKO_ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
||||||
APKO_VERSION=$(curl -fsSL "https://api.github.com/repos/chainguard-dev/apko/releases/latest" | jq -r '.tag_name')
|
APKO_VERSION=$(curl -fsSL "https://api.github.com/repos/chainguard-dev/apko/releases/latest" | jq -r '.tag_name')
|
||||||
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/${APKO_VERSION}/apko_linux_${APKO_ARCH}.tar.gz" | tar xz -C /usr/local/bin apko
|
APKO_VERSION_NUM="${APKO_VERSION#v}"
|
||||||
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/${APKO_VERSION}/apko_${APKO_VERSION_NUM}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
|
-o /tmp/apko.tar.gz
|
||||||
|
tar xzf /tmp/apko.tar.gz -C /usr/local/bin apko
|
||||||
|
rm /tmp/apko.tar.gz
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|||||||
@ -54,7 +54,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
APKO_ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
APKO_ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
||||||
APKO_VERSION=$(curl -fsSL "https://api.github.com/repos/chainguard-dev/apko/releases/latest" | jq -r '.tag_name')
|
APKO_VERSION=$(curl -fsSL "https://api.github.com/repos/chainguard-dev/apko/releases/latest" | jq -r '.tag_name')
|
||||||
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/${APKO_VERSION}/apko_linux_${APKO_ARCH}.tar.gz" | tar xz -C /usr/local/bin apko
|
APKO_VERSION_NUM="${APKO_VERSION#v}"
|
||||||
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/${APKO_VERSION}/apko_${APKO_VERSION_NUM}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
|
-o /tmp/apko.tar.gz
|
||||||
|
tar xzf /tmp/apko.tar.gz -C /usr/local/bin apko
|
||||||
|
rm /tmp/apko.tar.gz
|
||||||
|
|
||||||
- name: Build image locally
|
- name: Build image locally
|
||||||
if: steps.should_run.outputs.run == 'true'
|
if: steps.should_run.outputs.run == 'true'
|
||||||
|
|||||||
@ -27,15 +27,12 @@ jobs:
|
|||||||
- name: Install apko
|
- name: Install apko
|
||||||
run: |
|
run: |
|
||||||
APKO_ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
APKO_ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
||||||
echo "Arch: ${APKO_ARCH}"
|
|
||||||
APKO_VERSION=$(curl -fsSL "https://api.github.com/repos/chainguard-dev/apko/releases/latest" | jq -r '.tag_name')
|
APKO_VERSION=$(curl -fsSL "https://api.github.com/repos/chainguard-dev/apko/releases/latest" | jq -r '.tag_name')
|
||||||
echo "Version: ${APKO_VERSION}"
|
APKO_VERSION_NUM="${APKO_VERSION#v}"
|
||||||
URL="https://github.com/chainguard-dev/apko/releases/download/${APKO_VERSION}/apko_linux_${APKO_ARCH}.tar.gz"
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/${APKO_VERSION}/apko_${APKO_VERSION_NUM}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
echo "URL: ${URL}"
|
-o /tmp/apko.tar.gz
|
||||||
curl -fsSL -o /tmp/apko.tar.gz "${URL}"
|
tar xzf /tmp/apko.tar.gz -C /usr/local/bin apko
|
||||||
tar xz -C /usr/local/bin apko < /tmp/apko.tar.gz
|
|
||||||
rm /tmp/apko.tar.gz
|
rm /tmp/apko.tar.gz
|
||||||
apko version || true
|
|
||||||
|
|
||||||
- name: Check for Wolfi package updates
|
- name: Check for Wolfi package updates
|
||||||
id: check
|
id: check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user