Skip to content

The Unified and Autonomous Development Platform

chore: EE submodule fixup

Robin Shen33224ae97730
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index e391f9c1ce..74078d11eb 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -30,7 +30,6 @@ jobs:
image: '@property:buildEnvironment@'
interpreter: !DefaultInterpreter
commands:
- - export MAVEN_OPTS="-Xmx1024M"
- mvn test
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
@@ -48,7 +47,7 @@ jobs:
- name: Release
steps:
- !CheckoutStep
- name: checkout
+ name: checkout code
cloneCredential: !HttpCredential
accessTokenSecret: onedev-token
withLfs: false
@@ -70,7 +69,7 @@ jobs:
buildVersion: '@file:buildVersion@'
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
- name: build & deploy
+ name: build and deploy
runInContainer: true
image: '@property:buildEnvironment@'
interpreter: !DefaultInterpreter
@@ -84,7 +83,7 @@ jobs:
- docker login -u robinshen -p @secrets:dockerhub-password@
- ''
- '# Skip test as we''ve already tested in CI build'
- - mvn -Dmaven.test.skip=true -Dmaven.deploy.password=@secrets:maven-deploy-password@ deploy
+ - mvn -Dmaven.test.skip=true -Dmaven.deploy.username=@job_token@ -Dmaven.deploy.password=@secrets:maven-deploy-password@ deploy
- ''
- cd $projectDir/server-product/docker
- docker run --privileged --rm tonistiigi/binfmt --install all
@@ -152,6 +151,24 @@ jobs:
filePatterns: server-product/system/incompatibilities/**
startPage: server-product/system/incompatibilities/incompatibilities.md
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !BuildImageStep
+ name: build server docker image
+ buildPath: server-product/target/docker
+ dockerfile: server-product/target/docker/Dockerfile.server
+ tags: 1dev/server 1dev/server:@build_version@
+ publish: true
+ removeDanglingImages: true
+ moreOptions: --builder onedev --platform linux/amd64,linux/arm64
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !BuildImageStep
+ name: build agent docker image
+ buildPath: server-product/target/docker
+ dockerfile: server-product/target/docker/Dockerfile.agent
+ tags: 1dev/agent
+ publish: true
+ removeDanglingImages: true
+ moreOptions: --builder onedev --platform linux/amd64,linux/arm64
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CloseMilestoneStep
name: close milestone
milestoneName: '@build_version@'
@@ -181,7 +198,14 @@ jobs:
image: alpine/git:1.0.7
interpreter: !DefaultInterpreter
commands:
+ - git config --global user.name "Robin Shen"
+ - git config --global user.email "robin@@onedev.io"
- git config --global --unset http.extraHeader
+ - git rm -r server-ee
+ - sed -i '/server-ee/d' pom.xml
+ - ''
+ - git add pom.xml
+ - git commit -m "Remove EE module"
- git push -f https://robinshine:@secrets:github-token@@@github.com/theonedev/onedev.git HEAD:main
useTTY: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
@@ -193,3 +217,39 @@ jobs:
maxRetries: 3
retryDelay: 30
timeout: 3600
+- name: Publish Site
+ steps:
+ - !CommandStep
+ name: build
+ runInContainer: true
+ image: ubuntu
+ interpreter: !DefaultInterpreter
+ commands:
+ - 'apt update '
+ - apt install -y zip
+ - buildVersion=`ls onedev-*.tar.gz | grep -Po 'onedev-\K.*(?=.tar.gz)'`
+ - tar zxvf onedev-$buildVersion.tar.gz
+ - mv onedev-$buildVersion onedev-latest
+ - tar zcvf onedev-latest.tar.gz onedev-latest
+ - zip -r onedev-latest.zip onedev-latest
+ - sha256sum onedev-latest.zip > onedev-latest.zip.sha256
+ - sha256sum onedev-latest.tar.gz > onedev-latest.tar.gz.sha256
+ - echo $buildVersion > build_version
+ useTTY: false
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !SetBuildVersionStep
+ name: set version
+ buildVersion: '@file:build_version@'
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !PublishSiteStep
+ name: publish
+ artifacts: onedev-latest*
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ jobDependencies:
+ - jobName: Release
+ requireSuccessful: true
+ artifacts: onedev-*.zip onedev-*.tar.gz
+ retryCondition: never
+ maxRetries: 3
+ retryDelay: 30
+ timeout: 3600
diff --git a/license.txt b/license.txt
index 9bdeef02dd..53187d3e72 100644
--- a/license.txt
+++ b/license.txt
@@ -1,15 +1,21 @@
-OneDev Source License
+MIT License
Copyright (c) 2023-present OneDev Pty
-This source is available for purpose of internal development inside OneDev Pty, or audit/review
-by OneDev commercial users. You shall not redistribute/modify it or use any part of it in other
-work unless permitted with written notice from OneDev Pty.
-
-THE SOFTWARE AND ITS RELATED DOCUMENTATION ARE PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND
-AND ONEDEV PTY EXPRESSLY DISCLAIMS ALL OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. UNDER
-NO CIRCUMSTANCES SHALL ONEDEV PTY BE LIABLE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES
-THAT RESULT FROM THE USE OR INABILITYTO USE THE SOFTWARE OR RELATED DOCUMENTATION, EVEN IF ONEDEV
-PTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN NO EVENT SHALL ONEDEV PTY LIABILITY
-EXCEED THE SUBSCRIPTION FEE PAID, IF ANY.
\ No newline at end of file
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/server-ee b/server-ee
index 0fe699b5bc..4ab0b37ce6 160000
--- a/server-ee
+++ b/server-ee
@@ -1 +1 @@
-Subproject commit 0fe699b5bcdeee76726b529a53fca5aa9fbd6dbc
+Subproject commit 4ab0b37ce644047e435a72be096af34ea7120382