mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-29 18:58:05 +08:00
[Chore] Fix publish docker error in CI due to deploy failed (#16667)
This commit is contained in:
parent
b97f6fcb26
commit
4e853024ea
1
.github/workflows/api-test.yml
vendored
1
.github/workflows/api-test.yml
vendored
@ -81,7 +81,6 @@ jobs:
|
||||
run: |
|
||||
./mvnw -B clean install \
|
||||
-Dmaven.test.skip=true \
|
||||
-Dmaven.javadoc.skip=true \
|
||||
-Dspotless.skip=true \
|
||||
-Pdocker,staging -Ddocker.tag=ci
|
||||
- name: Export Docker Images
|
||||
|
1
.github/workflows/codeql.yaml
vendored
1
.github/workflows/codeql.yaml
vendored
@ -51,7 +51,6 @@ jobs:
|
||||
- run: |
|
||||
./mvnw -B clean install \
|
||||
-Dmaven.test.skip \
|
||||
-Dmaven.javadoc.skip \
|
||||
-Dspotless.skip=true \
|
||||
-Prelease
|
||||
|
||||
|
1
.github/workflows/e2e-k8s.yml
vendored
1
.github/workflows/e2e-k8s.yml
vendored
@ -71,7 +71,6 @@ jobs:
|
||||
run: |
|
||||
./mvnw -B clean package \
|
||||
-Dmaven.test.skip=true \
|
||||
-Dmaven.javadoc.skip=true \
|
||||
-Dspotless.skip=true \
|
||||
-Pdocker,staging -Ddocker.tag=ci
|
||||
- name: Create k8s Kind Cluster
|
||||
|
1
.github/workflows/e2e.yml
vendored
1
.github/workflows/e2e.yml
vendored
@ -83,7 +83,6 @@ jobs:
|
||||
run: |
|
||||
./mvnw -B clean install \
|
||||
-Dmaven.test.skip=true \
|
||||
-Dmaven.javadoc.skip=true \
|
||||
-Dspotless.skip=true \
|
||||
-Pdocker,staging -Ddocker.tag=ci
|
||||
- name: Export Docker Images
|
||||
|
1
.github/workflows/publish-docker.yaml
vendored
1
.github/workflows/publish-docker.yaml
vendored
@ -85,7 +85,6 @@ jobs:
|
||||
run: |
|
||||
./mvnw -B clean deploy \
|
||||
-Dmaven.test.skip \
|
||||
-Dmaven.javadoc.skip \
|
||||
-Dspotless.skip=true \
|
||||
-Ddocker.tag=${{ env.DOCKER_TAG }} \
|
||||
-Ddocker.hub=${{ env.HUB }} \
|
||||
|
1
.github/workflows/publish-nexus.yaml
vendored
1
.github/workflows/publish-nexus.yaml
vendored
@ -72,4 +72,5 @@ jobs:
|
||||
-s ${{ env.SETTINGS_PATH }} \
|
||||
-Dmaven.test.skip=true \
|
||||
-Dspotless.skip=true \
|
||||
-Dmaven.deploy.skip=false \
|
||||
-Pstaging
|
||||
|
@ -64,7 +64,6 @@ DolphinScheduler will release new Docker images after it released, you could fin
|
||||
cd dolphinscheduler
|
||||
./mvnw -B clean package \
|
||||
-Dmaven.test.skip \
|
||||
-Dmaven.javadoc.skip \
|
||||
-Dspotless.skip = true \
|
||||
-Ddocker.tag=<TAG> \
|
||||
-Pdocker,release
|
||||
@ -78,7 +77,6 @@ When the command is finished you could find them by command `docker images`.
|
||||
cd dolphinscheduler
|
||||
./mvnw -B clean deploy \
|
||||
-Dmaven.test.skip \
|
||||
-Dmaven.javadoc.skip \
|
||||
-Dspotless.skip = true \
|
||||
-Ddocker.tag=<TAG> \
|
||||
-Ddocker.hub=<HUB_URL> \
|
||||
|
@ -225,7 +225,7 @@ git push "${GH_REMOTE}" "${VERSION}"-release
|
||||
> first to clone the source code. And then make sure you set `GH_REMOTE="origin"` to make all command work fine.
|
||||
|
||||
```shell
|
||||
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}"
|
||||
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}"
|
||||
```
|
||||
|
||||
- `-Prelease`: choose release profile, which will pack all the source codes, jar files and executable binary packages.
|
||||
@ -243,7 +243,7 @@ mvn release:clean
|
||||
Then, prepare to execute the release.
|
||||
|
||||
```shell
|
||||
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}"
|
||||
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}"
|
||||
```
|
||||
|
||||
It is basically the same as the previous rehearsal command, but deleting `-DdryRun=true` parameter.
|
||||
@ -275,7 +275,7 @@ git push "${GH_REMOTE}" --tags
|
||||
#### Maven Release Deploy
|
||||
|
||||
```shell
|
||||
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}"
|
||||
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}"
|
||||
```
|
||||
|
||||
After that command is executed, the version to be released will be uploaded to Apache staging repository automatically.
|
||||
|
@ -61,7 +61,6 @@ DolphinScheduler 每次发版都会同时发布 Docker 镜像,你可以在 [Do
|
||||
cd dolphinscheduler
|
||||
./mvnw -B clean package \
|
||||
-Dmaven.test.skip \
|
||||
-Dmaven.javadoc.skip \
|
||||
-Dspotless.skip=true \
|
||||
-Ddocker.tag=<TAG> \
|
||||
-Pdocker,release
|
||||
@ -75,7 +74,6 @@ cd dolphinscheduler
|
||||
cd dolphinscheduler
|
||||
./mvnw -B clean deploy \
|
||||
-Dmaven.test.skip \
|
||||
-Dmaven.javadoc.skip \
|
||||
-Dspotless.skip = true \
|
||||
-Ddocker.tag=<TAG> \
|
||||
-Ddocker.hub=<HUB_URL> \
|
||||
|
@ -232,7 +232,7 @@ git push "${GH_REMOTE}" "${VERSION}"-release
|
||||
|
||||
```shell
|
||||
# 运行发版校验
|
||||
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}"
|
||||
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}"
|
||||
```
|
||||
|
||||
- `-Prelease`: 选择 release 的 profile,这个 profile 会打包所有源码、jar 文件以及可执行二进制包。
|
||||
@ -250,7 +250,7 @@ mvn release:clean
|
||||
然后准备执行发布。
|
||||
|
||||
```shell
|
||||
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}"
|
||||
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}"
|
||||
```
|
||||
|
||||
和上一步演练的命令基本相同,去掉了 `-DdryRun=true` 参数。
|
||||
@ -279,7 +279,7 @@ git push "${GH_REMOTE}" --tags
|
||||
#### 部署发布
|
||||
|
||||
```shell
|
||||
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}"
|
||||
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dspotless.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}"
|
||||
```
|
||||
|
||||
执行完该命令后,待发布版本会自动上传到 Apache 的临时筹备仓库(staging repository)。你可以通过访问 [apache staging repositories](https://repository.apache.org/#stagingRepositories)
|
||||
|
@ -181,7 +181,7 @@
|
||||
<environmentVariables>
|
||||
<DOCKER_BUILDKIT>1</DOCKER_BUILDKIT>
|
||||
</environmentVariables>
|
||||
<executable>docker</executable>
|
||||
<executable>bash</executable>
|
||||
<workingDirectory>${project.basedir}</workingDirectory>
|
||||
<arguments>
|
||||
<argument>src/main/docker/docker-push.sh</argument>
|
||||
|
Loading…
Reference in New Issue
Block a user