添加 .gitea / workflows / java-ci.yaml
This commit is contained in:
parent
ced7fbe814
commit
91e8775124
27
.gitea / workflows / java-ci.yaml
Normal file
27
.gitea / workflows / java-ci.yaml
Normal file
@ -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 .
|
Loading…
Reference in New Issue
Block a user