fix gitea

This commit is contained in:
千里走单骑 2024-04-03 02:00:57 +08:00
parent b6cda93e35
commit 8ce1c79b77
1 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
name: CI name: CI
run-name: ${{ github.actor }} Gitea Actions 🚀🚀🚀 run-name: ${{ gitea.actor }} Gitea Actions 🚀🚀🚀
on: on:
push: push:
# Sequence of patterns matched against refs/heads # Sequence of patterns matched against refs/heads
@ -33,7 +33,7 @@ jobs:
# npm --version # npm --version
# which docker # which docker
# docker info # docker info
# echo ${{ github.token }} # echo ${{ gitea.token }}
# echo ${{ env.GITOPS_URL }} # echo ${{ env.GITOPS_URL }}
- name: 🔎拉取代码 - name: 🔎拉取代码
@ -51,7 +51,7 @@ jobs:
# uses: https://${{ env.DOMAIN }}/actions/docker-build-push@v6 # uses: https://${{ env.DOMAIN }}/actions/docker-build-push@v6
# with: # with:
# image: ${{ gitea.repository }} # image: ${{ gitea.repository }}
# tags: ${{ github.sha }} # tags: ${{ gitea.sha }}
# registry: softyouling-docker.pkg.coding.net # registry: softyouling-docker.pkg.coding.net
# enableBuildKit: true # enableBuildKit: true
# # multiPlatform: true # # multiPlatform: true
@ -83,7 +83,7 @@ jobs:
email: "gitops@lntu.edu.cn" email: "gitops@lntu.edu.cn"
name: "千里走单骑" name: "千里走单骑"
value: ${{ gitea.repository }} value: ${{ gitea.repository }}
tag: ${{ github.sha }} tag: ${{ gitea.sha }}
url: ${{ env.DOMAIN }}/${{ secrets.GITOPS_REPO}} url: ${{ env.DOMAIN }}/${{ secrets.GITOPS_REPO}}
filename: ${{ secrets.FILE_NAME }} filename: ${{ secrets.FILE_NAME }}
token: ${{ secrets.GITOPS_TOKEN }} token: ${{ secrets.GITOPS_TOKEN }}
@ -103,4 +103,4 @@ jobs:
WECHAT_WORK_BOT_WEBHOOK: ${{ secrets.WECHAT_WORK_BOT_WEBHOOK }} WECHAT_WORK_BOT_WEBHOOK: ${{ secrets.WECHAT_WORK_BOT_WEBHOOK }}
with: with:
msgtype: markdown msgtype: markdown
content: "✅ 应用版本更新成功\n > 🐬 镜像:\n > softyouling-docker.pkg.coding.net/code/demo/demo:${{ github.sha }}\n > 🍏 就能帮你到这了" content: "✅ 应用版本更新成功\n > 🐬 镜像:\n > softyouling-docker.pkg.coding.net/code/demo/demo:${{ gitea.sha }}\n > 🍏 就能帮你到这了"