init222-11
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s

This commit is contained in:
TangHuan 2025-04-03 17:00:25 +08:00
parent 2c0c4a8158
commit ff79a48930

View File

@ -8,18 +8,6 @@ jobs:
steps:
- name: 克隆代码
uses: https://git.pintantan.com/actions/checkout@v4
# 缓存 Maven 依赖
# - name: Cache Jdk download
# uses: https://gitea.com/actions/cache@v3
# with:
# path: $RUNNER_TEMP/java_package.tar.gz
# key: ${{ runner.os }}-jdk-17.0.14
# restore-keys: ${{ runner.os }}-jdk-17.0.14
#
# - name: 下载jdk
# run: |
# download_url="https://mirrors.tuna.tsinghua.edu.cn/Adoptium/17/jdk/x64/linux/OpenJDK17U-jdk_x64_linux_hotspot_17.0.14_7.tar.gz"
# wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
- uses: https://git.pintantan.com/actions/setup-node@v4
with:
@ -36,18 +24,3 @@ jobs:
- name: 编译
run: npm run build
- name: Login to Gitea Container Registry
uses: https://git.pintantan.com/docker/login-action@v2
with:
registry: git.pintantan.com
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ vars.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: https://git.pintantan.com/docker/build-push-action@v4
with:
context: .
push: true
tags: git.pintantan.com/${{gitea.repository}}:demo-1.0.0