Compare commits

...

26 Commits

Author SHA1 Message Date
6d68779846
test: keep up with Alpine's Lua version 2025-02-03 22:17:24 +07:00
f4e03f5380
test: fix package 2025-01-19 23:14:08 +07:00
b3a47be1d1
test: temp fix lua issue with boringssl 2025-01-19 22:21:46 +07:00
d91693634d
test: test preserve 2025-01-19 21:47:15 +07:00
a84eb635f0
test: test all star 2025-01-12 12:27:07 +07:00
af83d46b0f
test: remove ~/ 2025-01-12 12:16:00 +07:00
c57206b960
test: output running directory 2025-01-12 12:12:53 +07:00
a09d3b8202
test: deploy on $pwd and accept tag 2025-01-12 11:54:50 +07:00
7295ee6a29
test: fix 2025-01-12 11:46:41 +07:00
75a77d86e6
test: output tar inffo 2025-01-12 11:38:45 +07:00
8fd254c452
test: new run approach 2025-01-12 11:27:05 +07:00
cb86017d93
test: do bash shell 2025-01-12 11:14:06 +07:00
953b9b22e7
test: blind fix 2025-01-12 11:05:26 +07:00
cb6f963466
tests: substitution fix 2025-01-12 11:04:07 +07:00
6451c7045d
test: remove case statement 2025-01-12 00:35:52 +07:00
c95ac299f6
test: remove multi varable per /bin/sh 2025-01-12 00:32:35 +07:00
7e11029b07
test: remove /bin/bash 2025-01-12 00:28:30 +07:00
701a2084b6
test: try /bin/bash 2025-01-12 00:25:01 +07:00
e402a3ed49
test: add lua 2025-01-12 00:21:06 +07:00
c9773dff3c
test: run alpine as root 2025-01-12 00:15:56 +07:00
48da2bb198
test: alpine nginx 2025-01-12 00:14:38 +07:00
GitHub Actions
ab11f6de2b [Actions] Generate Readme.md 2024-12-06 08:49:23 UTC 2024-12-06 08:49:24 +00:00
GitHub Actions
70178db704 [Actions] Generate Readme.md 2024-11-29 09:57:56 UTC 2024-11-29 09:57:57 +00:00
GitHub Actions
6c5e4eb7ed [Actions] Generate Readme.md 2024-10-18 11:34:02 UTC 2024-10-18 11:34:03 +00:00
GitHub Actions
b941089bff [Actions] Generate Readme.md 2024-10-11 03:35:35 UTC 2024-10-11 03:35:35 +00:00
GitHub Actions
0c35e8151e [Actions] Generate Readme.md 2024-10-10 18:48:09 UTC 2024-10-10 18:48:10 +00:00
2 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,87 @@
name: nginx Mega Build
run-name: nginx Build
on:
push:
tags:
- alpine-nginx-*
workflow_dispatch:
jobs:
build_nginx:
runs-on: [ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup latest Alpine Linux
uses: jirutka/setup-alpine@v1
- name: Run script inside Alpine chroot as root
run: |
apk add curl bash bash-completion
shell: alpine.sh --root {0}
- name: Set up environment variables
run: |
TAG_NAME=${GITHUB_REF##*/}
NGINX_TAG=${TAG_NAME#alpine-nginx-}
echo "NGINX_TAG=${NGINX_TAG}" >> $GITHUB_ENV
echo "NGINX_TAG=${NGINX_TAG}"
shell: alpine.sh {0}
- name: Run nginx Builds
run: |
build_sh='echo "${NGINX_TAG}"
TAGS=("vanilla" "allstar" "lua" "modsecurity")
OPTIONS=(
"--type=nginx"
"--lua --modsecurity --type=nginx --modsecurity-prefix=/usr --lua-prefix=/usr/share/lua/5.4 --luajit2-prefix=/usr --ssl=quictls"
"--lua --type=nginx --preserve --lua-prefix=/usr/share/lua/5.4 --luajit2-prefix=/usr --ssl=quictls"
"--modsecurity --type=nginx --preserve --modsecurity-prefix=/usr"
)
RUNNING_PATH=$(pwd)
echo "RUNNING PATH: ${RUNNING_PATH}" # This output where in the system is running
echo "HOME PATH: ${HOME}"
for i in ${!TAGS[@]}; do
echo "This Task will be run using the following tag: ${NGINX_TAG}"
echo "This Task will be run using the following version: ${TAGS[$i]}"
echo "This Task will be run using the following options: ${OPTIONS[$i]}"
curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_script/build.sh | bash -s -- --nginx-tag=${NGINX_TAG} ${OPTIONS[$i]}
# Prepare tar file paths
HOMEDIRECTORY=~/nginx_scriptbox
TAR_PATH="$HOMEDIRECTORY/nginx/objs" # Base Path
case "${TAGS[$i]}" in
"allstar")
TAR_PATH="$TAR_PATH /usr/lib/libmodsecurity* /usr/lib/pkgconfig/modsecurity.* /usr/bin/luajit* /usr/include/luajit-2.1 /usr/lib/libluajit* /usr/lib/pkgconfig/luajit.* /usr/lib/lua /usr/share/lua*"
;;
"lua")
TAR_PATH="$TAR_PATH /usr/bin/luajit* /usr/include/luajit-2.1 /usr/lib/libluajit* /usr/lib/pkgconfig/luajit.* /usr/lib/lua /usr/share/lua*"
;;
"modsecurity")
TAR_PATH="$TAR_PATH /usr/lib/libmodsecurity* /usr/lib/pkgconfig/modsecurity.*"
;;
esac
# Create the tarball
echo "pre-TARing infoiirmation:"
echo "TAR path: ${TAR_PATH}"
echo "TAR name: alpine-nginx-${NGINX_TAG}-${TAGS[$i]}.tar.gz"
tar czvf alpine-nginx-${NGINX_TAG}-${TAGS[$i]}.tar.gz $TAR_PATH
done'
echo "$build_sh" > build.sh
bash build.sh
shell: alpine.sh --root {0}
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: |
"nginx Successfully build on -> ${{ env.NGINX_TAG }}"
token: ${{ secrets.DEPLOYMENT_TOKEN }}
files: alpine-nginx-*.tar.gz

View File

@ -2,6 +2,8 @@
| RELEASE TAG | URL | | RELEASE TAG | URL |
|--------------|-----------------| |--------------|-----------------|
| nginx-release-1.27.3 | [Link](https://github.com/minoplhy/deployment/releases/tag/nginx-release-1.27.3) |
| nginx-release-1.27.2 | [Link](https://github.com/minoplhy/deployment/releases/tag/nginx-release-1.27.2) |
| nginx-release-1.27.0 | [Link](https://github.com/minoplhy/deployment/releases/tag/nginx-release-1.27.0) | | nginx-release-1.27.0 | [Link](https://github.com/minoplhy/deployment/releases/tag/nginx-release-1.27.0) |
| nginx-release-1.26.2 | [Link](https://github.com/minoplhy/deployment/releases/tag/nginx-release-1.26.2) | | nginx-release-1.26.2 | [Link](https://github.com/minoplhy/deployment/releases/tag/nginx-release-1.26.2) |
| nginx-release-1.26.1 | [Link](https://github.com/minoplhy/deployment/releases/tag/nginx-release-1.26.1) | | nginx-release-1.26.1 | [Link](https://github.com/minoplhy/deployment/releases/tag/nginx-release-1.26.1) |
@ -10,10 +12,20 @@
| RELEASE TAG | URL | | RELEASE TAG | URL |
|--------------|-----------------| |--------------|-----------------|
| freenginx-release-1.27.3 | [Link](https://github.com/minoplhy/deployment/releases/tag/freenginx-release-1.27.3) |
| freenginx-release-1.27.4 | [Link](https://github.com/minoplhy/deployment/releases/tag/freenginx-release-1.27.4) | | freenginx-release-1.27.4 | [Link](https://github.com/minoplhy/deployment/releases/tag/freenginx-release-1.27.4) |
# Gitea Releases # Gitea Releases
| RELEASE TAG | URL | | RELEASE TAG | URL |
|--------------|-----------------| |--------------|-----------------|
| gitea-v1.22.4 | [Link](https://github.com/minoplhy/deployment/releases/tag/gitea-v1.22.4) |
| gitea-v1.22.3 | [Link](https://github.com/minoplhy/deployment/releases/tag/gitea-v1.22.3) |
| gitea-v1.22.2 | [Link](https://github.com/minoplhy/deployment/releases/tag/gitea-v1.22.2) | | gitea-v1.22.2 | [Link](https://github.com/minoplhy/deployment/releases/tag/gitea-v1.22.2) |
| gitea-v1.22.1 | [Link](https://github.com/minoplhy/deployment/releases/tag/gitea-v1.22.1) | | gitea-v1.22.1 | [Link](https://github.com/minoplhy/deployment/releases/tag/gitea-v1.22.1) |
# forgejo Releases
| RELEASE TAG | URL |
|--------------|-----------------|
| forgejo-v9.0.2 | [Link](https://github.com/minoplhy/deployment/releases/tag/forgejo-v9.0.2) |
| forgejo-v9.0.0 | [Link](https://github.com/minoplhy/deployment/releases/tag/forgejo-v9.0.0) |
| forgejo-v8.0.3 | [Link](https://github.com/minoplhy/deployment/releases/tag/forgejo-v8.0.3) |