From 91e87751244a661fcef7ae6d678a115a42f5002a Mon Sep 17 00:00:00 2001 From: Hzbb Date: Sun, 27 Oct 2024 13:58:46 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea=20/=20workflows=20/?= =?UTF-8?q?=20java-ci.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea / workflows / java-ci.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea / workflows / java-ci.yaml diff --git a/.gitea / workflows / java-ci.yaml b/.gitea / workflows / java-ci.yaml new file mode 100644 index 0000000..7f3a3c1 --- /dev/null +++ b/.gitea / workflows / java-ci.yaml @@ -0,0 +1,27 @@ +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