```设置Mirai-bot项目构建测试工作流
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 2s
Some checks failed
Mirai-build / Explore-Gitea-Actions (push) Failing after 2s
更新了Gitea Actions的配置,使其能够适配Mirai-bot项目的构建和测试。工作流被重命名为“Mirai-build”,并且新的环境变量指定了裸仓库和克隆仓库的目录。此外,流程中包含了一个新的步骤,用于克隆仓库,并且运行的命令现在会导航到克隆的目录并使`mvnw`可执行。 ```
This commit is contained in:
parent
47fbae8703
commit
27755a6d7b
@ -1,15 +1,17 @@
|
|||||||
name: Gitea Actions Demo
|
name: Mirai-build
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
env:
|
||||||
|
BARE_REPO_DIR: /var/lib/gitea/data/gitea-repositories/Dace/Mirai-bot.git
|
||||||
|
CLONED_REPO_DIR: ./Dace/Mirai-bot
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: pwd
|
- run: |
|
||||||
- run: ls
|
rm -rf $CLONED_REPO_DIR
|
||||||
- run: cd ${{ gitea.workspace }}
|
git clone $BARE_REPO_DIR $CLONED_REPO_DIR
|
||||||
- run: pwd
|
- run: cd $CLONED_REPO_DIR
|
||||||
- run: ls
|
- run: chmod +x ./mvnw
|
||||||
- run: sh ./mvnw -DskipTests=true clean package -P prod
|
- run: sh ./mvnw -DskipTests=true clean package -P prod
|
||||||
- run: docker build -t mirai-bot:latest
|
- run: docker build -t mirai-bot:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user