From 902b55646b215d777dd0aa7796c4bb2cd3676af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E9=87=8C=E8=B5=B0=E5=8D=95=E9=AA=91?= Date: Tue, 2 Apr 2024 23:58:24 +0800 Subject: [PATCH] add docker --- .gitea/workflows/test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 4f3c411..16ee36f 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -10,15 +10,18 @@ env: jobs: Explore-Gitea-Actions: runs-on: k8s # <-- Used runner label - container: ubuntu:latest + container: ubuntu 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:/archive.ubuntu.com:/mirrors.volces.com/ubuntu:g /etc/apt/sources.list + apt install -y git apt-transport-https ca-certificates curl gnupg-agent software-properties-common + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" apt-get update - apt install -y git nodejs npm + apt install docker-ce docker-ce-cli containerd.io npm config set registry https://registry.npmmirror.com - name: ๆ‹‰ๅ–ไปฃ็  uses: https://${{ env.DOMAIN }}/actions/checkout@v4