【发布时间】:2022-08-04 19:11:43
【问题描述】:
我使用以下 .gitlab-ci.yml :
stages:
- build
docker-build:
# Use the official docker image.
image:
name: docker:latest
entrypoint: [\"\"]
stage: build
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
script:
- docker-compose -f compose_testfile.yaml down
...(and so on)
但我得到了错误:
/builds/testaccount/testproject/compose_testfile.yaml: no such file or directory
compose-file 位于安装 gitlab-runner 的机器上,如何从 docker-build 中的 .gitlab-ci.yml 访问该文件?