1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2026-04-24 01:27:37 +00:00

fix: version-aware nginx binary caching and prebuilt downloads

Cached nginx binaries were reused regardless of NGINX_VERSION changes,
and prebuilt releases always fetched the latest asset regardless of the
configured version. Add a .nginx-version marker file to the cache and
version the release asset filename so mismatched versions trigger a
rebuild.
This commit is contained in:
Jose Diaz-Gonzalez
2026-04-23 03:36:20 -04:00
parent 73e762c693
commit 93f1162632
2 changed files with 18 additions and 6 deletions

View File

@ -62,7 +62,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
source "$GITHUB_WORKSPACE/conf/nginx-configure-flags"
cp /tmp/nginx-${NGINX_VERSION}/objs/nginx /tmp/nginx-linux-amd64
chmod +x /tmp/nginx-linux-amd64
cp /tmp/nginx-${NGINX_VERSION}/objs/nginx "/tmp/nginx-${NGINX_VERSION}-linux-amd64"
chmod +x "/tmp/nginx-${NGINX_VERSION}-linux-amd64"
gh release upload "${{ github.event.release.tag_name }}" \
/tmp/nginx-linux-amd64
"/tmp/nginx-${NGINX_VERSION}-linux-amd64"