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:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user