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
1
  • 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 6, 2020 at 21:15

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.