Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drone 1.0.0 syntax example #88

Closed
sercanacar opened this issue Jan 22, 2019 · 1 comment
Closed

Drone 1.0.0 syntax example #88

sercanacar opened this issue Jan 22, 2019 · 1 comment

Comments

@sercanacar
Copy link

sercanacar commented Jan 22, 2019

Hi,

Trying to use helm plugin with new drone 1.X syntax, but failing miserably:

  - name: deploy
  image: quay.io/ipedrazas/drone-helm
  skip_tls_verify: true
  chart: ./helm/api
  update_dependencies: false
  values_files: "helm/production-values.yaml"
  release: api
  namespace: production
  when:
    branch: [drone-integration]

Error: API Server is needed to deploy.

Any ideas how to incorporate api_server and token? Ideally using Vault, which I have setup and enabled in drone

Regards

@ipedrazas
Copy link
Owner

#81

This issue explains how to do it. Basically, there's a secret that contains the API server and the token needed.

deploy_helm:
    image: quay.io/ipedrazas/drone-helm
    chart: ./kubernetes/neo
    release: neo
    values: image.tag=${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7},version=${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7}
    secrets:
      - api_server
      - kubernetes_token
    when:
      branch: master
      event: push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants