Skip to content

Commit

Permalink
.drone.yml changes for dynamic repo
Browse files Browse the repository at this point in the history
  • Loading branch information
leodotcloud authored and Alena Prokharchyk committed Jun 25, 2019
1 parent bc2e196 commit abbcd82
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ steps:
- name: build
image: rancher/dapper:v0.4.1
commands:
- export REPO=${DRONE_REPO_NAMESPACE}
- dapper ci
volumes:
- name: docker
Expand Down Expand Up @@ -42,7 +43,7 @@ steps:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: "rancher/security-scan"
repo: "${DRONE_REPO_NAMESPACE}/security-scan"
tag: "${DRONE_TAG}-amd64"
username:
from_secret: docker_username
Expand Down Expand Up @@ -72,6 +73,7 @@ steps:
- name: build
image: rancher/dapper:v0.4.1
commands:
- export REPO=${DRONE_REPO_NAMESPACE}
- dapper ci
volumes:
- name: docker
Expand Down Expand Up @@ -104,7 +106,7 @@ steps:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: "rancher/security-scan"
repo: "${DRONE_REPO_NAMESPACE}/security-scan"
tag: "${DRONE_TAG}-arm64"
username:
from_secret: docker_username
Expand Down Expand Up @@ -134,6 +136,7 @@ steps:
- name: build
image: rancher/dapper:v0.4.1
commands:
- export REPO=${DRONE_REPO_NAMESPACE}
- dapper ci
volumes:
- name: docker
Expand Down Expand Up @@ -166,7 +169,7 @@ steps:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: "rancher/security-scan"
repo: "${DRONE_REPO_NAMESPACE}/security-scan"
tag: "${DRONE_TAG}-arm"
username:
from_secret: docker_username
Expand Down Expand Up @@ -204,8 +207,8 @@ steps:
- linux/amd64
- linux/arm64
- linux/arm
target: "rancher/security-scan:${DRONE_TAG}"
template: "rancher/security-scan:${DRONE_TAG}-ARCH"
target: "${DRONE_REPO_NAMESPACE}/security-scan:${DRONE_TAG}"
template: "${DRONE_REPO_NAMESPACE}/security-scan:${DRONE_TAG}-ARCH"
when:
instance:
- drone-publish.rancher.io
Expand Down

0 comments on commit abbcd82

Please sign in to comment.