Fix apko install: assign env to shell var before use in URL
Some checks failed
Check for Upstream Stable Updates / Rebuild and push all variants (apko/dotnet-runtime.yaml, dotnet-runtime) (push) Blocked by required conditions
Check for Upstream Stable Updates / Rebuild and push all variants (apko/dotnet-sdk.yaml, dotnet-sdk) (push) Blocked by required conditions
Check for Upstream Stable Updates / Rebuild and push all variants (apko/flutter-sdk.yaml, flutter-sdk) (push) Blocked by required conditions
Check for Upstream Stable Updates / Create release for new Flutter version (push) Blocked by required conditions
Build and Push Base Distro Images / build-and-push (apko/base.yaml, base) (push) Successful in 40s
Build and Push Base Distro Images / build-and-push (apko/build.yaml, build) (push) Successful in 43s
Build and Push Base Distro Images / build-and-push (apko/dotnet-runtime.yaml, dotnet-runtime) (push) Successful in 49s
Build and Push Base Distro Images / build-and-push (apko/dotnet-sdk.yaml, dotnet-sdk) (push) Successful in 1m5s
Build and Push Base Distro Images / build-and-push (apko/flutter-sdk.yaml, flutter-sdk) (push) Successful in 40s
Weekly Rebuild (CVE Updates) / rebuild (apko/base.yaml, base) (push) Successful in 40s
Weekly Rebuild (CVE Updates) / rebuild (apko/build.yaml, build) (push) Successful in 43s
Weekly Rebuild (CVE Updates) / rebuild (apko/dotnet-runtime.yaml, dotnet-runtime) (push) Successful in 37s
Weekly Rebuild (CVE Updates) / rebuild (apko/dotnet-sdk.yaml, dotnet-sdk) (push) Successful in 41s
Weekly Rebuild (CVE Updates) / rebuild (apko/flutter-sdk.yaml, flutter-sdk) (push) Successful in 55s
Check for Upstream Stable Updates / Check Wolfi package updates (push) Successful in 27s
Check for Upstream Stable Updates / Check .NET stable releases (push) Successful in 1s
Check for Upstream Stable Updates / Check Flutter stable releases (push) Successful in 1s
Check for Upstream Stable Updates / Rebuild and push all variants (apko/base.yaml, base) (push) Has been cancelled
Check for Upstream Stable Updates / Rebuild and push all variants (apko/build.yaml, build) (push) Has been cancelled
Some checks failed
Check for Upstream Stable Updates / Rebuild and push all variants (apko/dotnet-runtime.yaml, dotnet-runtime) (push) Blocked by required conditions
Check for Upstream Stable Updates / Rebuild and push all variants (apko/dotnet-sdk.yaml, dotnet-sdk) (push) Blocked by required conditions
Check for Upstream Stable Updates / Rebuild and push all variants (apko/flutter-sdk.yaml, flutter-sdk) (push) Blocked by required conditions
Check for Upstream Stable Updates / Create release for new Flutter version (push) Blocked by required conditions
Build and Push Base Distro Images / build-and-push (apko/base.yaml, base) (push) Successful in 40s
Build and Push Base Distro Images / build-and-push (apko/build.yaml, build) (push) Successful in 43s
Build and Push Base Distro Images / build-and-push (apko/dotnet-runtime.yaml, dotnet-runtime) (push) Successful in 49s
Build and Push Base Distro Images / build-and-push (apko/dotnet-sdk.yaml, dotnet-sdk) (push) Successful in 1m5s
Build and Push Base Distro Images / build-and-push (apko/flutter-sdk.yaml, flutter-sdk) (push) Successful in 40s
Weekly Rebuild (CVE Updates) / rebuild (apko/base.yaml, base) (push) Successful in 40s
Weekly Rebuild (CVE Updates) / rebuild (apko/build.yaml, build) (push) Successful in 43s
Weekly Rebuild (CVE Updates) / rebuild (apko/dotnet-runtime.yaml, dotnet-runtime) (push) Successful in 37s
Weekly Rebuild (CVE Updates) / rebuild (apko/dotnet-sdk.yaml, dotnet-sdk) (push) Successful in 41s
Weekly Rebuild (CVE Updates) / rebuild (apko/flutter-sdk.yaml, flutter-sdk) (push) Successful in 55s
Check for Upstream Stable Updates / Check Wolfi package updates (push) Successful in 27s
Check for Upstream Stable Updates / Check .NET stable releases (push) Successful in 1s
Check for Upstream Stable Updates / Check Flutter stable releases (push) Successful in 1s
Check for Upstream Stable Updates / Rebuild and push all variants (apko/base.yaml, base) (push) Has been cancelled
Check for Upstream Stable Updates / Rebuild and push all variants (apko/build.yaml, build) (push) Has been cancelled
Gitea drops the second ${{ env.APKO_VERSION }} expansion when multiple
expressions appear on the same line. Assigning to a shell variable
first avoids the bug.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
193ce6f4c6
commit
70fc24a7e6
@ -46,7 +46,8 @@ 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/')
|
||||||
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${{ env.APKO_VERSION }}/apko_${{ env.APKO_VERSION }}_linux_${APKO_ARCH}.tar.gz" \
|
APKO_VER="${{ env.APKO_VERSION }}"
|
||||||
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${APKO_VER}/apko_${APKO_VER}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
-o /tmp/apko.tar.gz
|
-o /tmp/apko.tar.gz
|
||||||
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
||||||
rm /tmp/apko.tar.gz
|
rm /tmp/apko.tar.gz
|
||||||
|
|||||||
@ -38,7 +38,8 @@ 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/')
|
||||||
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${{ env.APKO_VERSION }}/apko_${{ env.APKO_VERSION }}_linux_${APKO_ARCH}.tar.gz" \
|
APKO_VER="${{ env.APKO_VERSION }}"
|
||||||
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${APKO_VER}/apko_${APKO_VER}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
-o /tmp/apko.tar.gz
|
-o /tmp/apko.tar.gz
|
||||||
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
||||||
rm /tmp/apko.tar.gz
|
rm /tmp/apko.tar.gz
|
||||||
|
|||||||
@ -54,7 +54,8 @@ jobs:
|
|||||||
if: steps.should_run.outputs.run == 'true'
|
if: steps.should_run.outputs.run == 'true'
|
||||||
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/')
|
||||||
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${{ env.APKO_VERSION }}/apko_${{ env.APKO_VERSION }}_linux_${APKO_ARCH}.tar.gz" \
|
APKO_VER="${{ env.APKO_VERSION }}"
|
||||||
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${APKO_VER}/apko_${APKO_VER}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
-o /tmp/apko.tar.gz
|
-o /tmp/apko.tar.gz
|
||||||
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
||||||
rm /tmp/apko.tar.gz
|
rm /tmp/apko.tar.gz
|
||||||
|
|||||||
@ -28,7 +28,8 @@ 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/')
|
||||||
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${{ env.APKO_VERSION }}/apko_${{ env.APKO_VERSION }}_linux_${APKO_ARCH}.tar.gz" \
|
APKO_VER="${{ env.APKO_VERSION }}"
|
||||||
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${APKO_VER}/apko_${APKO_VER}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
-o /tmp/apko.tar.gz
|
-o /tmp/apko.tar.gz
|
||||||
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
||||||
rm /tmp/apko.tar.gz
|
rm /tmp/apko.tar.gz
|
||||||
@ -126,7 +127,8 @@ 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/')
|
||||||
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${{ env.APKO_VERSION }}/apko_${{ env.APKO_VERSION }}_linux_${APKO_ARCH}.tar.gz" \
|
APKO_VER="${{ env.APKO_VERSION }}"
|
||||||
|
curl -fsSL "https://github.com/chainguard-dev/apko/releases/download/v${APKO_VER}/apko_${APKO_VER}_linux_${APKO_ARCH}.tar.gz" \
|
||||||
-o /tmp/apko.tar.gz
|
-o /tmp/apko.tar.gz
|
||||||
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
tar xzf /tmp/apko.tar.gz --strip-components=1 -C /usr/local/bin
|
||||||
rm /tmp/apko.tar.gz
|
rm /tmp/apko.tar.gz
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user