mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2025-12-28 09:57:30 +00:00
Compare commits
20 Commits
806f8f5b0a
...
v27
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c3e8af17f | |||
| 14214785d7 | |||
| 25571d4189 | |||
| 154edf423b | |||
| 087ffbbef2 | |||
| e5c4e68f8c | |||
| fa0e5758a5 | |||
| c90d35aa9b | |||
| 23011e35cd | |||
| 6facd99c18 | |||
| 29d384b8f5 | |||
| 9294ea62ad | |||
| 5b78844e1e | |||
| 75a9d50394 | |||
| 05b3a5c841 | |||
| f415d7d80d | |||
| cf60a30bc8 | |||
| f77b6db3a0 | |||
| f2bbc7f0a0 | |||
| c1c5ed2d9e |
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
name: 'review-app'
|
name: 'deploy'
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cloning repo
|
- name: Cloning repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
8
.github/workflows/review-app.yml
vendored
8
.github/workflows/review-app.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
name: 'review-app'
|
name: "review-app"
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cloning repo
|
- name: Cloning repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@ -20,9 +20,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# create a review app
|
# create a review app
|
||||||
command: review-apps:create
|
command: review-apps:create
|
||||||
git_remote_url: 'ssh://dokku@dokku.com/nginx-buildpack'
|
git_remote_url: "ssh://dokku@dokku.com/nginx-buildpack"
|
||||||
# specify `--force` as a flag for git pushes
|
# specify `--force` as a flag for git pushes
|
||||||
git_push_flags: '--force'
|
git_push_flags: "--force"
|
||||||
# specify a name for the review app
|
# specify a name for the review app
|
||||||
review_app_name: nginx-buildpack-${{ github.event.pull_request.number }}
|
review_app_name: nginx-buildpack-${{ github.event.pull_request.number }}
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|||||||
27
bin/compile
27
bin/compile
@ -3,13 +3,16 @@
|
|||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
[[ $TRACE ]] && set -x
|
[[ $TRACE ]] && set -x
|
||||||
|
|
||||||
NGINX_VERSION="1.26.2"
|
# https://nginx.org/en/download.html
|
||||||
|
NGINX_VERSION="1.29.3"
|
||||||
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
|
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
|
||||||
PCRE_VERSION="10.42"
|
# https://github.com/PCRE2Project/pcre2/releases
|
||||||
|
PCRE_VERSION="10.47"
|
||||||
PCRE_TARBALL="pcre2-${PCRE_VERSION}.tar.gz"
|
PCRE_TARBALL="pcre2-${PCRE_VERSION}.tar.gz"
|
||||||
SIGIL_VERSION="0.10.1"
|
# https://github.com/gliderlabs/sigil/releases
|
||||||
SIGIL_TARBALL="gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz"
|
SIGIL_VERSION="0.11.5"
|
||||||
ZLIB_VERSION="1.3"
|
# https://github.com/madler/zlib/releases
|
||||||
|
ZLIB_VERSION="1.3.1"
|
||||||
ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz"
|
ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz"
|
||||||
|
|
||||||
suppress() {
|
suppress() {
|
||||||
@ -67,18 +70,18 @@ if [[ ! -d "${ZLIB_TARBALL%.tar.gz}" ]]; then
|
|||||||
tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}"
|
tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f "gliderlabs-sigil-amd64" ]]; then
|
mkdir -p "$BUILD_DIR/sigil"
|
||||||
|
if [[ ! -f "$BUILD_DIR/sigil/sigil-${SIGIL_VERSION}" ]]; then
|
||||||
echo "-----> Download and unzip sigil ${SIGIL_VERSION} via http"
|
echo "-----> Download and unzip sigil ${SIGIL_VERSION} via http"
|
||||||
curl -sSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz" -o "${SIGIL_TARBALL}"
|
curl -fsSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/sigil-linux-amd64" -o "$BUILD_DIR/sigil/sigil-${SIGIL_VERSION}"
|
||||||
tar xzf "${SIGIL_TARBALL}" && rm -rf "${SIGIL_TARBALL}"
|
cp "$BUILD_DIR/sigil/sigil-${SIGIL_VERSION}" "$BUILD_DIR/sigil/sigil"
|
||||||
|
chmod +x "$BUILD_DIR/sigil/sigil"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$BUILD_DIR/sigil"
|
if [[ ! -f "$BUILD_DIR/sigil/sigil" ]]; then
|
||||||
if [[ ! -f "gliderlabs-sigil-amd64" ]]; then
|
echo " ! Missing sigil binary"
|
||||||
echo " ! Missing gliderlabs-sigil-amd64 binary"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cp -r gliderlabs-sigil-amd64 "$BUILD_DIR/sigil/sigil"
|
|
||||||
|
|
||||||
cd "nginx-${NGINX_VERSION}"
|
cd "nginx-${NGINX_VERSION}"
|
||||||
if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then
|
if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user