mirror of
https://github.com/minoplhy/deployment.git
synced 2025-04-21 18:46:57 +00:00
Compare commits
25 Commits
nginx-rele
...
main
Author | SHA1 | Date | |
---|---|---|---|
6d68779846 | |||
f4e03f5380 | |||
b3a47be1d1 | |||
d91693634d | |||
a84eb635f0 | |||
af83d46b0f | |||
c57206b960 | |||
a09d3b8202 | |||
7295ee6a29 | |||
75a77d86e6 | |||
8fd254c452 | |||
cb86017d93 | |||
953b9b22e7 | |||
cb6f963466 | |||
6451c7045d | |||
c95ac299f6 | |||
7e11029b07 | |||
701a2084b6 | |||
e402a3ed49 | |||
c9773dff3c | |||
48da2bb198 | |||
|
ab11f6de2b | ||
|
70178db704 | ||
|
6c5e4eb7ed | ||
|
b941089bff |
87
.github/workflows/alpine-nginx-build.yaml
vendored
Normal file
87
.github/workflows/alpine-nginx-build.yaml
vendored
Normal 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
|
@ -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) |
|
||||||
@ -16,6 +18,7 @@
|
|||||||
|
|
||||||
| 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.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) |
|
||||||
@ -23,4 +26,6 @@
|
|||||||
|
|
||||||
| RELEASE TAG | URL |
|
| 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) |
|
| forgejo-v8.0.3 | [Link](https://github.com/minoplhy/deployment/releases/tag/forgejo-v8.0.3) |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user