无法在Drone插件drone-gcr和drone-docker中设置上下文

问题描述

此错误drone docker plugin question ...

根据documentation ...

context参数不起作用。我在日志中不断遇到file not found错误。

如何在drone-docker和drone-gcr插件中设置上下文?

name: publish
image: plugins/gcr
settings:
  context: subdirectory
  registry: registry.dev
  repo: repoName
  tag: latest

我也尝试过

name: publish
image: plugins/gcr
settings:
  file: Dockerfile
  context: subdirectory
  registry: registry.dev
  repo: repoName
  tag: latest

解决方法

您还必须设置dockerfile标志:

name: publish
image: plugins/gcr
settings:
  dockerfile: subdirectory/Dockerfile
  context: subdirectory
  registry: registry.dev
  repo: repoName
  tag: latest

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...