0

Per this bug drone docker plugin question...

And per the documentation...

The context parameter just doesn't work. I keep getting file not found errors in the logs.

How do I set the context in drone-docker and drone-gcr plugins?

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

I've also tried

name: publish
image: plugins/gcr
settings:
  file: Dockerfile
  context: subdirectory
  registry: registry.dev
  repo: repoName
  tag: latest
meh
  • 2,591
  • 4
  • 20
  • 33
  • This question is mostly for myself in the future. This is the second time I spent 30 minutes trying to figure this out. – meh Oct 06 '20 at 21:15

1 Answers1

1

You must set the dockerfile flag as well:

name: publish
image: plugins/gcr
settings:
  dockerfile: subdirectory/Dockerfile
  context: subdirectory
  registry: registry.dev
  repo: repoName
  tag: latest
meh
  • 2,591
  • 4
  • 20
  • 33