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