- 创建 Dockerfile 包含 PHP + Node.js + Git + SSH - 所有 workflow 使用本地镜像避免拉取延迟 - 需要先构建镜像: docker build -t gitea-runner-php:latest .
This commit is contained in:
@@ -20,12 +20,9 @@ jobs:
|
||||
name: 部署测试环境
|
||||
runs-on: linux
|
||||
container:
|
||||
image: alpine:latest
|
||||
image: gitea-runner-php:latest
|
||||
if: github.ref == 'refs/heads/develop'
|
||||
steps:
|
||||
- name: 安装依赖
|
||||
run: apk add --no-cache openssh-client bash
|
||||
|
||||
- name: 设置 SSH 密钥
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
@@ -67,12 +64,9 @@ jobs:
|
||||
name: 部署正式环境
|
||||
runs-on: linux
|
||||
container:
|
||||
image: alpine:latest
|
||||
image: gitea-runner-php:latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: 安装依赖
|
||||
run: apk add --no-cache openssh-client bash
|
||||
|
||||
- name: 设置 SSH 密钥
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
|
||||
Reference in New Issue
Block a user