fix ubuntu

This commit is contained in:
千里走单骑 2024-04-02 23:47:49 +08:00
parent ef307c9d6d
commit 1a254003b0
1 changed files with 4 additions and 4 deletions

View File

@ -10,15 +10,15 @@ env:
jobs:
Explore-Gitea-Actions:
runs-on: k8s # <-- Used runner label
container: node:lts-alpine
container: ubuntu:latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- run: |
sed -i 's/dl-cdn.alpinelinux.org/mirrors.volces.com/g' /etc/apk/repositories
apk update
apk add --no-cache docker
sed -i s:/archive.ubuntu.com:/mirrors.volces.com/ubuntu:g /etc/apt/sources.list
apt-get update
apt install -y git nodejs npm
npm config set registry https://registry.npmmirror.com
- name: 拉取代码
uses: https://${{ env.DOMAIN }}/actions/checkout@v4