This commit is contained in:
@@ -6,9 +6,7 @@ jobs:
|
|||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 测试命令
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
shell: sh
|
|
||||||
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 }}."
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
|
|||||||
@@ -8,11 +8,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- runner-data:/data
|
- runner-data:/data
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
working_dir: /data # 关键:设置工作目录为卷挂载点
|
||||||
environment:
|
environment:
|
||||||
- GITEA_INSTANCE_URL=https://git.bmycode.help
|
- GITEA_INSTANCE_URL=https://git.bmycode.help
|
||||||
- GITEA_RUNNER_REGISTRATION_TOKEN=WFiO5JDwz7CHnk7fMGJYMcSITU81CLXuI7Ofg10e
|
- GITEA_RUNNER_REGISTRATION_TOKEN=WFiO5JDwz7CHnk7fMGJYMcSITU81CLXuI7Ofg10e
|
||||||
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:20-bullseye
|
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest
|
||||||
- GITEA_RUNNER_NAME=ci操作
|
- GITEA_RUNNER_NAME=my-vue-app-runner
|
||||||
networks:
|
networks:
|
||||||
- gitea-actions-network
|
- gitea-actions-network
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user