fix domain

This commit is contained in:
千里走单骑 2024-04-02 23:29:20 +08:00
parent f287959055
commit aea004744c
1 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,12 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
env:
# DOCKER_REGISTRY: docker.io
# DOCKER_USERNAME: softyouling
# 此处可修改为你任意 docker 镜像仓库地址和用户名
DOMAIN: gitea.lntu.edu.cn
jobs:
Explore-Gitea-Actions:
runs-on: k8s # <-- Used runner label
@ -14,9 +19,9 @@ jobs:
echo "nameserver 180.184.1.1" >/etc/resolv.conf
sed -i 's/dl-cdn.alpinelinux.org/mirrors.volces.com/g' /etc/apk/repositories
apk update --no-cache && npm config set registry https://registry.npmmirror.com
rm -rf /etc/resolv.conf
- name: Check out repository code
uses: actions/checkout@v4
uses: https://${{ env.DOMAIN }}/actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository