-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from qianmoQ/feature-dev
发布 1.5.0
- Loading branch information
Showing
15 changed files
with
181 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
name: Publish images via Docker | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
env: | ||
APP_NAME: infosphere | ||
GITHUB_REGISTRY: ghcr.io | ||
APP_GITHUB_GROUP: devlive-community | ||
APP_DOCKER_GROUP: devliveorg | ||
|
||
jobs: | ||
before-compile: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
APP_VERSION: ${{ steps.apply_version.outputs.APP_VERSION }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Generate app version | ||
run: echo APP_VERSION=`./mvnw -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugins.help=INFO | tail -1` >> "$GITHUB_OUTPUT" | ||
id: apply_version | ||
|
||
- name: Compile from source | ||
run: | | ||
chmod 755 ./mvnw | ||
./mvnw clean install package -Dfindbugs.skip -Dgpg.skip -Dcheckstyle.skip -DskipTests=true -q | ||
- name: Cache binary | ||
id: cache-binary | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-binary | ||
with: | ||
path: | | ||
./Dockerfile | ||
./dist/infosphere-release.tar.gz | ||
key: ${{ runner.os }}-build-${{ env.cache-name }} | ||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }} | ||
|
||
publish-github-ghcr: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- before-compile | ||
steps: | ||
- name: Get cache binary | ||
id: cache-binary | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-binary | ||
with: | ||
path: | | ||
./Dockerfile | ||
./dist/infosphere-release.tar.gz | ||
key: ${{ runner.os }}-build-${{ env.cache-name }} | ||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Build | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ env.GITHUB_REGISTRY }} | ||
username: qianmoq | ||
password: ${{ secrets.PACKAGES_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
push: true | ||
tags: | | ||
${{ env.GITHUB_REGISTRY }}/${{ env.APP_GITHUB_GROUP }}/${{ env.APP_NAME }}:${{ needs.before-compile.outputs.APP_VERSION }} | ||
${{ env.GITHUB_REGISTRY }}/${{ env.APP_GITHUB_GROUP }}/${{ env.APP_NAME }}:latest | ||
publish-docker-hub: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- before-compile | ||
steps: | ||
- name: Get cache binary | ||
id: cache-binary | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-binary | ||
with: | ||
path: | | ||
./Dockerfile | ||
./dist/infosphere-release.tar.gz | ||
key: ${{ runner.os }}-build-${{ env.cache-name }} | ||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Build | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.ORG_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.ORG_DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
push: true | ||
tags: | | ||
${{ env.APP_DOCKER_GROUP }}/${{ env.APP_NAME }}:${{ needs.before-compile.outputs.APP_VERSION }} | ||
${{ env.APP_DOCKER_GROUP }}/${{ env.APP_NAME }}:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
**InfoSphere 发布!** | ||
|
||
| 发布版本 | 发布时间 | | ||
|:-------:|:------------:| | ||
| `1.5.0` | `2024-01-28` | | ||
|
||
## 基本功能 | ||
|
||
--- | ||
|
||
- 支持用户登录 | ||
- 支持用户注册 | ||
|
||
## 文章功能 | ||
|
||
--- | ||
|
||
- 支持创建文章 | ||
- 支持修改文章 | ||
- 支持最新文章 [首页] | ||
- 支持最热文章 [首页] | ||
- 支持我的文章 [首页] | ||
- 支持推荐文章 [首页] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters