1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2026-03-12 08:35:57 +00:00

16 Commits

Author SHA1 Message Date
86dfeec2ca Merge pull request #95 from dokku/josegonzalez-patch-1
chore: rename job to deploy
2026-03-07 11:11:39 -05:00
ca3942c86b Merge pull request #96 from dokku/josegonzalez-patch-2
chore: upgrade zlib from 1.3.1 to 1.3.2
2026-03-07 11:10:18 -05:00
6370be31a4 chore: upgrade zlib from 1.3.1 to 1.3.2 2026-03-07 11:08:09 -05:00
bc25e56ef2 chore: rename job to deploy 2026-03-07 11:04:45 -05:00
f55c587fe7 chore: remove debugging 2026-03-07 11:01:29 -05:00
bf9a02f4e4 chore: drop debugging 2026-03-07 11:01:01 -05:00
e6606b78d0 Merge pull request #94 from dokku/josegonzalez-patch-1
fix: checkout the code when cleaning up review apps
2026-03-07 10:58:35 -05:00
b13b59c326 fix: checkout the code when cleaning up review apps 2026-03-07 10:57:29 -05:00
c8c38bb28f Merge pull request #93 from dokku/josegonzalez-patch-1
feat: enable trace mode on cleanups
2026-03-07 10:56:16 -05:00
5763938ba0 feat: enable trace mode on cleanups 2026-03-07 10:55:26 -05:00
488cf5fed2 Merge pull request #92 from dokku/josegonzalez-patch-1
chore: ugprade nginx from 1.29.3 to 1.29.5
2026-03-07 10:34:53 -05:00
e710a8facb chore: ugprade nginx from 1.29.3 to 1.29.5 2026-03-07 10:33:06 -05:00
c352c1447c Merge pull request #91 from dokku/162-test-hook
debug: check that the bin/ci-post-review-app-destroy hook gets triggered
2026-03-07 10:27:49 -05:00
6639e59190 debug: check that the bin/ci-post-review-app-destroy hook gets triggered 2026-03-07 10:27:02 -05:00
6c3e8af17f Merge pull request #90 from dokku/fix-sigil-download
fix: properly download sigil
2025-11-21 21:41:03 -05:00
14214785d7 fix: properly download sigil 2025-11-21 21:40:04 -05:00
4 changed files with 16 additions and 11 deletions

View File

@ -9,7 +9,7 @@ on:
- main
jobs:
review_app:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo

View File

@ -12,6 +12,9 @@ jobs:
destroy_review_app:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v6
- name: Destroy the review app
uses: dokku/github-action@master
with:

3
bin/ci-post-review-app-destroy Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh -l
echo "Running ci-post-review-app-destroy"

View File

@ -4,16 +4,15 @@ set -eo pipefail
[[ $TRACE ]] && set -x
# https://nginx.org/en/download.html
NGINX_VERSION="1.29.3"
NGINX_VERSION="1.29.5"
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
# https://github.com/PCRE2Project/pcre2/releases
PCRE_VERSION="10.47"
PCRE_TARBALL="pcre2-${PCRE_VERSION}.tar.gz"
# https://github.com/gliderlabs/sigil/releases
SIGIL_VERSION="0.11.5"
SIGIL_TARBALL="gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz"
# https://github.com/madler/zlib/releases
ZLIB_VERSION="1.3.1"
ZLIB_VERSION="1.3.2"
ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz"
suppress() {
@ -71,18 +70,18 @@ if [[ ! -d "${ZLIB_TARBALL%.tar.gz}" ]]; then
tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}"
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"
curl -sSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz" -o "${SIGIL_TARBALL}"
tar xzf "${SIGIL_TARBALL}" && rm -rf "${SIGIL_TARBALL}"
curl -fsSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/sigil-linux-amd64" -o "$BUILD_DIR/sigil/sigil-${SIGIL_VERSION}"
cp "$BUILD_DIR/sigil/sigil-${SIGIL_VERSION}" "$BUILD_DIR/sigil/sigil"
chmod +x "$BUILD_DIR/sigil/sigil"
fi
mkdir -p "$BUILD_DIR/sigil"
if [[ ! -f "gliderlabs-sigil-amd64" ]]; then
echo " ! Missing gliderlabs-sigil-amd64 binary"
if [[ ! -f "$BUILD_DIR/sigil/sigil" ]]; then
echo " ! Missing sigil binary"
exit 1
fi
cp -r gliderlabs-sigil-amd64 "$BUILD_DIR/sigil/sigil"
cd "nginx-${NGINX_VERSION}"
if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then