
All checks were successful
Sakura-Miki-build / Explore-Gitea-Actions (push) Successful in 1m24s
- 添加了 ./ 指定 Dockerfile 所在目录
25 lines
898 B
YAML
25 lines
898 B
YAML
name: Sakura-Miki-build
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [ push ]
|
|
env:
|
|
BARE_REPO_DIR: https://git.alina-dace.info/Dace/Sakura-Miki.git
|
|
CLONED_REPO_DIR: ./
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Git Repo
|
|
uses: https://git.alina-dace.info/actions/checkout@v4
|
|
- run: pwd
|
|
- name: Set up JDK 17
|
|
uses: https://git.alina-dace.info/actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
cache: maven
|
|
- run: chmod +x ./mvnw
|
|
- run: ./mvnw install:install-file -Dfile=./lib/AlistUtil-1.0.0-spring.jar -Dpackaging=jar -DgroupId=io.github.1530624156 -DartifactId=AlistUtil -Dversion=1.0.0-spring
|
|
- name: build
|
|
run: ./mvnw clean package -DskipTests=true -P prod
|
|
- run: docker build -t sakura-miki:latest ./
|