mirror of
https://github.com/minoplhy/deployment.git
synced 2025-04-21 18:46:57 +00:00
freenginx-build.yaml: init
This commit is contained in:
parent
07c82b8328
commit
2649f894a5
53
.github/workflows/freenginx-build.yaml
vendored
Normal file
53
.github/workflows/freenginx-build.yaml
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
name: Nginx Mega Build
|
||||||
|
run-name: Nginx Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- nginx-*
|
||||||
|
jobs:
|
||||||
|
build_nginx:
|
||||||
|
runs-on: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up environment variables
|
||||||
|
run: |
|
||||||
|
TAG_NAME=${GITHUB_REF##*/}
|
||||||
|
NGINX_TAG=${TAG_NAME#nginx-}
|
||||||
|
|
||||||
|
echo "NGINX_TAG=${NGINX_TAG}" >> $GITHUB_ENV
|
||||||
|
echo "NGINX_TAG=${NGINX_TAG}"
|
||||||
|
|
||||||
|
- name: Run Nginx Build (Vanilla)
|
||||||
|
run: |
|
||||||
|
echo "This Task will be run using the following tag: ${NGINX_TAG}"
|
||||||
|
curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_script/build.sh | bash -s -- --nginx-tag=${NGINX_TAG} --no-lua --no-modsecurity --type=freenginx
|
||||||
|
tar czvf nginx-${NGINX_TAG}-vanilla.tar.gz ~/nginx_scriptbox/nginx/objs
|
||||||
|
|
||||||
|
- name: Run Nginx Build (All Star)
|
||||||
|
run: |
|
||||||
|
echo "This Task will be run using the following tag: ${NGINX_TAG}"
|
||||||
|
curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_script/build.sh | bash -s -- --nginx-tag=${NGINX_TAG} --type=freenginx
|
||||||
|
tar czvf nginx-${NGINX_TAG}-allstar.tar.gz ~/nginx_scriptbox/nginx/objs /opt/nginx-lua-module /usr/local/lua /usr/local/modsecurity
|
||||||
|
|
||||||
|
- name: Run Nginx Build (Lua)
|
||||||
|
run: |
|
||||||
|
echo "This Task will be run using the following tag: ${NGINX_TAG}"
|
||||||
|
curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_script/build.sh | bash -s -- --nginx-tag=${NGINX_TAG} --no-modsecurity --type=freenginx
|
||||||
|
tar czvf nginx-${NGINX_TAG}-lua.tar.gz ~/nginx_scriptbox/nginx/objs /opt/nginx-lua-module /usr/local/lua
|
||||||
|
|
||||||
|
- name: Run Nginx Build (ModSecurity)
|
||||||
|
run: |
|
||||||
|
echo "This Task will be run using the following tag: ${NGINX_TAG}"
|
||||||
|
curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_script/build.sh | bash -s -- --nginx-tag=${NGINX_TAG} --no-lua --type=freenginx
|
||||||
|
tar czvf nginx-${NGINX_TAG}-modsecurity.tar.gz ~/nginx_scriptbox/nginx/objs /usr/local/modsecurity
|
||||||
|
|
||||||
|
- 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: nginx-*.tar.gz
|
Loading…
x
Reference in New Issue
Block a user