Skip to content

Commit

Permalink
Set build arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubigla committed May 23, 2020
1 parent f232ec1 commit 5a286c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ name: docker
steps:
- name: kubersd
image: plugins/docker
environment:
VERSION: "${DRONE_SEMVER_SHORT}"
settings:
repo: jacops/kubersd
auto_tag: true
Expand All @@ -61,11 +63,15 @@ steps:
from_secret: docker_hub_username
password:
from_secret: docker_hub_password
build_args_from_env:
- VERSION
when:
event: tag

- name: kubers-agent
image: plugins/docker
environment:
VERSION: "${DRONE_SEMVER_SHORT}"
settings:
repo: jacops/kubers-agent
auto_tag: true
Expand All @@ -74,6 +80,8 @@ steps:
from_secret: docker_hub_username
password:
from_secret: docker_hub_password
build_args_from_env:
- VERSION
when:
event: tag

Expand Down

0 comments on commit 5a286c4

Please sign in to comment.