【发布时间】:2017-06-06 12:39:21
【问题描述】:
我在 Container Registry 中创建了一个触发器。我在 GIT HUB 存储库中有我的脚本。 在 Build trigger 中选择存储库托管选项作为 GitHub 和 Authenticated。
步骤:1:选择 git hub 源代码库
步骤:2:选择我的 git hub 存储库并进行身份验证。
第 3 步:使用 docker 文件选项创建触发器。
第 4 步:触发器运行,构建失败。
构建日志
starting build "5b04afe3-b669-48c6-83b1-58342f918256"
FETCHSOURCE
Initialized empty Git repository in /workspace/.git/
From https://source.developers.google.com/p/project-id/r/github-dhandapanisattanathan-gcb
* branch 59182f2dd5caffcc224d49299595056afd64d295 -> FETCH_HEAD
HEAD is now at 59182f2 ver 2
BUILD
Already have image (with digest): gcr.io/cloud-builders/docker
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /workspace/Dockerfile: no such file or directory
ERROR
ERROR: build step "gcr.io/cloud-builders/docker@sha256:bb4f74d4d598896f932f4d2a5b12b3a816f5f6d3c9cf1f50d0bdd98fd4004d2d" failed: exit status 1
我遇到了这个问题,无法准备上下文:无法评估 Docker 文件路径中的符号链接:lstat /workspace/Dockerfile:没有这样的文件或目录。
我不知道我在这里错过了什么。但是每次推送 git hub 触发器都会自动运行,构建失败。
请帮我解决这个问题。
【问题讨论】:
标签: github google-cloud-platform google-container-registry