From 6967217922c3d1bae2df4d1ddd9f5067e895561b Mon Sep 17 00:00:00 2001 From: Hzbb Date: Sun, 27 Oct 2024 14:08:18 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/java-ci.y?= =?UTF-8?q?aml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/java-ci.yaml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/java-ci.yaml b/.gitea/workflows/java-ci.yaml index d800886..49be7a7 100644 --- a/.gitea/workflows/java-ci.yaml +++ b/.gitea/workflows/java-ci.yaml @@ -1 +1,27 @@ -123 \ No newline at end of file +name: test ci +run-name: test run name +on: + push: + branches: + - main1 +jobs: + java-ci: + runs-on: maven-3.8 + steps: + - name: Checkout code + uses: https://gitea.com/actions/checkout@v3 + + - name: Build code + run: | + mvn clean install + mkdir app + cp target/*.jar app + + - name: Build image + run: | + docker build -t harbor.hzbb.top/test/springboot-helloworld:v0.0.2 . + + - name: Push image + run: | + docker login -u hzbb -p Hzbb@12354 harbor.hzbb.top + docker build -t harbor.hzbb.top/test/springboot-helloworld:v0.0.2 . \ No newline at end of file