Skip to content

Commit

Permalink
drone: set codecov_token
Browse files Browse the repository at this point in the history
Not really a secret, so it's fine to expose this to PRs.
  • Loading branch information
fsouza committed Jul 27, 2019
1 parent e18bbba commit 7ff2b1b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
7 changes: 6 additions & 1 deletion drone/.drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ local build(go_version) = {
local coverage_report = {
name: 'codecov-report',
image: 'golang',
commands: ['curl -s https://codecov.io/bash | bash'],
commands: ['curl -s https://codecov.io/bash | bash -s -- -t ${CODECOV_TOKEN}'],
environment: {
CODECOV_TOKEN: {
from_secret: 'codecov_token',
},
},
depends_on: ['coverage'],
};

Expand Down
15 changes: 12 additions & 3 deletions drone/.drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ steps:
- name: codecov-report
image: golang
commands:
- "curl -s https://codecov.io/bash | bash"
- "curl -s https://codecov.io/bash | bash -s -- -t ${CODECOV_TOKEN}"
environment:
CODECOV_TOKEN:
from_secret: codecov_token
depends_on:
- coverage

Expand Down Expand Up @@ -153,7 +156,10 @@ steps:
- name: codecov-report
image: golang
commands:
- "curl -s https://codecov.io/bash | bash"
- "curl -s https://codecov.io/bash | bash -s -- -t ${CODECOV_TOKEN}"
environment:
CODECOV_TOKEN:
from_secret: codecov_token
depends_on:
- coverage

Expand Down Expand Up @@ -226,7 +232,10 @@ steps:
- name: codecov-report
image: golang
commands:
- "curl -s https://codecov.io/bash | bash"
- "curl -s https://codecov.io/bash | bash -s -- -t ${CODECOV_TOKEN}"
environment:
CODECOV_TOKEN:
from_secret: codecov_token
depends_on:
- coverage

Expand Down

0 comments on commit 7ff2b1b

Please # to comment.