mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2026-04-30 11:37:35 +00:00
Compare commits
16
Commits
35-stdout
...
86dfeec2ca
@@ -9,7 +9,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
review_app:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cloning repo
|
- name: Cloning repo
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ jobs:
|
|||||||
destroy_review_app:
|
destroy_review_app:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cloning repo
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Destroy the review app
|
- name: Destroy the review app
|
||||||
uses: dokku/github-action@master
|
uses: dokku/github-action@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh -l
|
||||||
|
|
||||||
|
echo "Running ci-post-review-app-destroy"
|
||||||
+9
-10
@@ -4,16 +4,15 @@ set -eo pipefail
|
|||||||
[[ $TRACE ]] && set -x
|
[[ $TRACE ]] && set -x
|
||||||
|
|
||||||
# https://nginx.org/en/download.html
|
# https://nginx.org/en/download.html
|
||||||
NGINX_VERSION="1.29.3"
|
NGINX_VERSION="1.29.5"
|
||||||
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
|
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
|
||||||
# https://github.com/PCRE2Project/pcre2/releases
|
# https://github.com/PCRE2Project/pcre2/releases
|
||||||
PCRE_VERSION="10.47"
|
PCRE_VERSION="10.47"
|
||||||
PCRE_TARBALL="pcre2-${PCRE_VERSION}.tar.gz"
|
PCRE_TARBALL="pcre2-${PCRE_VERSION}.tar.gz"
|
||||||
# https://github.com/gliderlabs/sigil/releases
|
# https://github.com/gliderlabs/sigil/releases
|
||||||
SIGIL_VERSION="0.11.5"
|
SIGIL_VERSION="0.11.5"
|
||||||
SIGIL_TARBALL="gliderlabs-sigil_${SIGIL_VERSION}_linux_amd64.tgz"
|
|
||||||
# https://github.com/madler/zlib/releases
|
# https://github.com/madler/zlib/releases
|
||||||
ZLIB_VERSION="1.3.1"
|
ZLIB_VERSION="1.3.2"
|
||||||
ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz"
|
ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz"
|
||||||
|
|
||||||
suppress() {
|
suppress() {
|
||||||
@@ -71,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