Compare commits

..

31 commits

Author SHA1 Message Date
qiaofeng1227
3e70be3394 Merge branch 'dev' into main
Some checks failed
Build image to DockerHub / setup (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Build image to DockerHub / build (push) Has been cancelled
2025-01-02 14:47:55 +08:00
qiaofeng1227
37e5caf1fe 2.1.10
Some checks failed
Build image to DockerHub / setup (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Build image to DockerHub / build (push) Has been cancelled
2025-01-02 14:46:27 +08:00
qiaofeng1227
0ea418212e Merge branch 'dev' into main 2025-01-02 11:28:54 +08:00
qiaofeng1227
370cbc6393 dev 2025-01-02 11:28:07 +08:00
qiaofeng1227
7bc27c191e Merge branch 'main' of https://github.com/Websoft9/websoft9 into main 2025-01-02 11:26:36 +08:00
qiaofeng1227
381c3f8999 Merge branch 'dev' into main 2025-01-02 11:25:26 +08:00
qiaofeng1227
625edd42b5 apphub 2025-01-02 11:25:09 +08:00
qiaofeng1227
600600f3e2 delete W9_URL_WITH_PORT logic 2025-01-02 08:20:57 +08:00
qiaofeng1227
f2a700a07c
Merge pull request #579 from Websoft9/dev
Some checks failed
Build image to DockerHub / setup (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Build image to DockerHub / build (push) Has been cancelled
Dev
2025-01-01 10:24:36 +08:00
qiaofeng1227
75e3687a56
Update version.json
Some checks failed
Build image to DockerHub / setup (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Build image to DockerHub / build (push) Has been cancelled
2025-01-01 10:23:10 +08:00
qiaofeng1227
ac24903f76
Update .env 2025-01-01 10:22:22 +08:00
qiaofeng1227
eb29dad1aa
Update Dockerfile 2025-01-01 10:21:33 +08:00
qiaofeng1227
e4eda2a164 Merge branch 'dev' into main
Some checks are pending
Build image to DockerHub / build (push) Blocked by required conditions
Build image to DockerHub / setup (push) Waiting to run
2024-12-31 10:20:26 +08:00
qiaofeng1227
e6787fcb0b action edit 2024-12-31 10:18:46 +08:00
qiaofeng1227
35a8cb008d apphub-dev
Some checks failed
Build image to DockerHub / setup (push) Has been cancelled
Build image to DockerHub / build (push) Has been cancelled
2024-12-30 15:18:51 +08:00
qiaofeng1227
196aa685a9 test dev library and media 2024-12-30 14:52:53 +08:00
qiaofeng1227
3cc0b8d933 Merge branch 'dev' into main
Some checks are pending
Build image to DockerHub / setup (push) Waiting to run
Build image to DockerHub / build (push) Blocked by required conditions
2024-12-30 14:28:00 +08:00
qiaofeng1227
978c34242a dev call library to pass parameter 2024-12-30 14:27:42 +08:00
qiaofeng1227
0e2831b878 dev 2024-12-30 13:03:13 +08:00
qiaofeng1227
a461d448f3 test dev apphub 2024-12-30 12:04:51 +08:00
qiaofeng1227
5908ac8d4b Merge branch 'dev' of https://github.com/Websoft9/websoft9 into dev 2024-12-30 12:03:04 +08:00
qiaofeng1227
542be67a7d
Update Dockerfile
Some checks failed
Build image to DockerHub / setup (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Build image to DockerHub / build (push) Has been cancelled
2024-12-29 12:04:25 +08:00
qiaofeng1227
91689ef278
Merge pull request #577 from Websoft9/dev
Some checks failed
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
action
2024-12-29 12:03:32 +08:00
qiaofeng1227
4ac3f9606a
Update docker.yml 2024-12-29 11:28:29 +08:00
qiaofeng1227
e8191b0550
Update version.json 2024-12-29 09:06:11 +08:00
qiaofeng1227
e5f13eb27c
Merge pull request #576 from Websoft9/dev
Update release.yml
2024-12-29 08:58:48 +08:00
qiaofeng1227
63c8d71f91
Update release.yml 2024-12-29 08:55:34 +08:00
qiaofeng1227
98eae4bb57 install 2024-12-27 10:28:30 +08:00
qiaofeng1227
9124abee7f Merge branch 'dev' of https://github.com/Websoft9/websoft9 into dev 2024-12-25 16:50:45 +08:00
qiaofeng1227
70575b5cb0 2.1.19
Some checks failed
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
2024-12-25 16:50:17 +08:00
Darren
95c6b9af0b
Update README.md 2024-12-25 16:22:57 +08:00
9 changed files with 54 additions and 38 deletions

View file

@ -11,7 +11,7 @@ name: Build image to DockerHub
on:
push:
branches: [main]
branches: [main, dev] # Include dev branch
paths:
- "docker/*/Dockerfile"
@ -38,8 +38,7 @@ jobs:
needs: setup
runs-on: ubuntu-latest
env:
# You can set it to choice where download from
MEDIA_FROM: "source"
MEDIA_FROM: "source" # You can set it to choice where download from
strategy:
matrix: ${{fromJson(needs.setup.outputs.matrix)}}
steps:
@ -53,23 +52,31 @@ jobs:
APP=${{ matrix.app }}
TAG=$(grep 'LABEL version' "docker/$APP/Dockerfile" | cut -d'"' -f2 | xargs)
echo $APP version is $TAG
if [[ "$TAG" == *"-"* ]]; then
TAGS="$TAG"
# Determine the channel based on the branch and TAG
if [[ $GITHUB_REF == *"refs/heads/dev"* ]]; then
echo "CHANNEL=dev" >> $GITHUB_ENV
TAGS="$TAG" # Use the TAG directly for dev
else
echo "CHANNEL=release" >> $GITHUB_ENV
IFS='.' read -ra PARTS <<< "$TAG"
TAGS="latest"
TAG_PART=""
for i in "${!PARTS[@]}"; do
if [ "$i" -eq 0 ]; then
TAG_PART="${PARTS[$i]}"
else
TAG_PART="${TAG_PART}.${PARTS[$i]}"
fi
TAGS="${TAGS},${TAG_PART}"
done
if [[ "$TAG" == *"-"* ]]; then
echo "CHANNEL=rc" >> $GITHUB_ENV
TAGS="$TAG"
else
echo "CHANNEL=release" >> $GITHUB_ENV
IFS='.' read -ra PARTS <<< "$TAG"
TAGS="latest"
TAG_PART=""
for i in "${!PARTS[@]}"; do
if [ "$i" -eq 0 ]; then
TAG_PART="${PARTS[$i]}"
else
TAG_PART="${TAG_PART}.${PARTS[$i]}"
fi
TAGS="${TAGS},${TAG_PART}"
done
fi
fi
echo "Building and pushing Docker image for $APP with tags: $TAGS"
echo "TAGS=$TAGS" >> $GITHUB_ENV
echo "APP=$APP" >> $GITHUB_ENV
@ -159,4 +166,4 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
repository: websoft9dev/${{env.APP}}
readme-filepath: ${{env.README}}
if: needs.setup.outputs.matrix != ''
if: needs.setup.outputs.matrix != ''

View file

@ -5,6 +5,7 @@ on:
push:
branches:
- main
- dev
paths:
- "version.json"
@ -24,9 +25,13 @@ jobs:
version_core=${version%%-*}
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION_CORE=$version_core" >> $GITHUB_OUTPUT
if [[ $version == *-* ]]; then
echo "rc release version"
if [[ $GITHUB_REF == *"refs/heads/dev"* ]]; then
echo "dev branch detected"
echo "CHANNEL=dev" >> $GITHUB_OUTPUT
elif [[ $version == *-* ]]; then
echo "rc release version"
echo "CHANNEL=rc" >> $GITHUB_OUTPUT
else
echo "release version"
echo "CHANNEL=release" >> $GITHUB_OUTPUT
@ -71,6 +76,7 @@ jobs:
destination-dir: ./${{ steps.convert_version.outputs.CHANNEL }}/websoft9
- name: Create Github Release
if: github.ref == 'refs/heads/main' # 仅在 main 分支上触发
uses: softprops/action-gh-release@v1
with:
files: |
@ -84,6 +90,7 @@ jobs:
pages:
name: Build Github Pages
if: github.ref == 'refs/heads/main' # 仅在 main 分支上触发
permissions:
contents: read
pages: write

View file

@ -62,7 +62,6 @@ Need root privileges user to install Websoft9, if you use no-root user you can `
# Install by default
wget -O install.sh https://websoft9.github.io/websoft9/install/install.sh && bash install.sh
# Install Websoft9 with parameters
wget -O install.sh https://websoft9.github.io/websoft9/install/install.sh && bash install.sh --port 9000 --channel release --path "/data/websoft9/source" --version "latest"
```

View file

@ -1,7 +1,7 @@
[nginx_proxy_manager]
base_url = http://websoft9-proxy:81/api
user_name = admin@mydomain.com
user_pwd = 9KCRwcL10saLCGaZ
user_pwd = LMFuCnajkQhK3zeb
nike_name = admin
listen_port = 443
@ -9,18 +9,18 @@ listen_port = 443
base_url = http://websoft9-git:3000/api/v1
user_name = websoft9
user_email = admin@mydomain.com
user_pwd = kk95qed0Fxt8
user_pwd = 93HDu6tUWeGx
[portainer]
base_url = http://websoft9-deployment:9000/api
user_name = admin
user_pwd = FptfbwA1TpUr
user_pwd = 93sX)LLHKJY$
[api_key]
key = cc9223b3055471a6f4f9654e08371816a9637ba1c57383617b0684b92ac7b2f4
[domain]
wildcard_domain =
wildcard_domain =
[cockpit]
port = 9000

View file

@ -429,15 +429,17 @@ class AppManger:
# Verify the app is web app
is_web_app = envHelper.get_value("W9_URL")
url_with_port = envHelper.get_value("W9_URL_WITH_PORT")
# url_with_port = envHelper.get_value("W9_URL_WITH_PORT")
w9_url_with_replace = envHelper.get_value("W9_URL_REPLACE")
if is_web_app is not None:
if url_with_port is None:
if w9_url_with_replace is None:
envHelper.set_value("W9_URL", domain_names[0])
else:
try:
ipaddress.ip_address(domain_names[0])
envHelper.set_value("W9_URL", domain_names[0] + ":" + envHelper.get_value("W9_HTTP_PORT_SET"))
#envHelper.set_value("W9_URL", domain_names[0] + ":" + envHelper.get_value("W9_HTTP_PORT_SET"))
envHelper.set_value("W9_URL", domain_names[0] + ":" + (envHelper.get_value("W9_HTTP_PORT_SET") or envHelper.get_value("W9_HTTPS_PORT_SET")))
except ValueError:
envHelper.set_value("W9_URL", domain_names[0])
@ -1100,7 +1102,7 @@ class AppManger:
# Get the w9_url and w9_url_replace
w9_url_replace = next((element.get("w9_url_replace") for element in app_info.domain_names if element.get("id") == proxy_id), None)
w9_url = next((element.get("w9_url") for element in app_info.domain_names if element.get("id") == proxy_id), None)
# validate w9_url_replace is true
if w9_url_replace:
domain_names = host.get("domain_names",None)
@ -1111,7 +1113,8 @@ class AppManger:
if w9_url in domain_names:
new_w9_url = None
if len(app_proxys) == 1 and app_proxys[0].get("id") == proxy_id:
new_w9_url = client_host
# 如果w9_url_with_port存在并且值为: true
new_w9_url = client_host+":"+ (app_info.env.get("W9_HTTP_PORT_SET") or app_info.env.get("W9_HTTPS_PORT_SET"))
elif len(app_proxys) > 1:
# Get the first proxy_host
proxy_host = next((proxy for proxy in app_proxys if proxy.get("id") != proxy_id), None)

View file

@ -1,4 +1,4 @@
APPHUB_VERSION=0.1.8
APPHUB_VERSION=0.1.9
DEPLOYMENT_VERSION=2.20.3
GIT_VERSION=1.21.9
PROXY_VERSION=2.11.3
PROXY_VERSION=2.11.3

View file

@ -1,11 +1,11 @@
# This file can running at actions
# MEDIA_VERSION and LIBRARY_VERSION will trigger its release
# modify time: 202412251101, you can modify here to trigger Docker Build action
# modify time: 202501021450, you can modify here to trigger Docker Build action
FROM python:3.10-slim-bullseye
LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="0.1.8"
LABEL version="0.1.9"
WORKDIR /websoft9

View file

@ -18,7 +18,7 @@ export PATH
#
# $ sudo bash install.sh --port 9001
#
# --channel <release|dev>
# --channel <release|rc|dev>
# Use the --channel option to install a release(production) or dev distribution. default is release, for example:
#
# $ sudo bash install.sh --channel release

View file

@ -1,5 +1,5 @@
{
"version": "2.1.19-rc1",
"version": "2.1.20",
"plugins": {
"portainer": "0.1.3",
"nginx": "0.1.0",
@ -11,8 +11,8 @@
},
"OS": {
"Fedora": [
"40",
"39"
"41",
"40"
],
"RedHat": [
"9",