Add authentication to CI/CD
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
1cc1b36443
commit
8a74dd01ec
18
.drone.yml
18
.drone.yml
|
@ -10,12 +10,6 @@ global-variables:
|
||||||
CRE_REGISTRY_IMAGE: *docker-registry-repo
|
CRE_REGISTRY_IMAGE: *docker-registry-repo
|
||||||
CRE_PORT: 9101
|
CRE_PORT: 9101
|
||||||
CRE_RELEASE: *release
|
CRE_RELEASE: *release
|
||||||
docker-settings: &docker-settings
|
|
||||||
repo: *docker-registry-repo
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
gradle-image: &gradle-image gradle:7.1-jdk11
|
gradle-image: &gradle-image gradle:7.1-jdk11
|
||||||
alpine-image: &alpine-image alpine:latest
|
alpine-image: &alpine-image alpine:latest
|
||||||
|
|
||||||
|
@ -62,7 +56,11 @@ steps:
|
||||||
- GRADLE_VERSION
|
- GRADLE_VERSION
|
||||||
- JAVA_VERSION
|
- JAVA_VERSION
|
||||||
- CRE_VERSION
|
- CRE_VERSION
|
||||||
<<: *docker-settings
|
repo: *docker-registry-repo
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
when:
|
when:
|
||||||
branch: develop
|
branch: develop
|
||||||
event:
|
event:
|
||||||
|
@ -79,7 +77,11 @@ steps:
|
||||||
- JAVA_VERSION
|
- JAVA_VERSION
|
||||||
build_args:
|
build_args:
|
||||||
- CRE_VERSION=${DRONE_TAG}
|
- CRE_VERSION=${DRONE_TAG}
|
||||||
<<: *docker-settings
|
repo: *docker-registry-repo
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
Loading…
Reference in New Issue