更新 .gitea/workflows/java-ci.yaml

This commit is contained in:
Hzbb 2024-10-27 14:43:17 +00:00
parent 6ac652e444
commit 4f133b3495

View File

@ -17,12 +17,9 @@ jobs:
- name: Checkout env
run: |
echo "1.${{ gitea.ref }}"
echo "1.1${{ gitea.ref.name }}"
echo "1.2${{ gitea.ref_name }}"
echo "2.${{ gitea.event_name }}"
echo "3.${{ runner.os }}"
echo "4.${{ gitea.repository }}"
echo "1.${{ HARBOR_REGISTRY_PASSWORD }}"
echo "2.${{ HARBOR.REGISTRY.PASSWORD }}"
echo "3.${{ HARBOR.REGISTRY_PASSWORD }}"
- name: Build code
@ -33,9 +30,9 @@ jobs:
- name: Build image
run: |
docker build -t harbor.hzbb.top/test/springboot-helloworld:v0.0.2 .
docker build -t harbor.hzbb.top/${{ gitea.repository }}:${{ gitea.ref_name }} .
- 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 .
docker build -t harbor.hzbb.top/${{ gitea.repository }}:${{ gitea.ref_name }} .