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
c45892f932
commit
1cc1b36443
14
.drone.yml
14
.drone.yml
|
@ -1,17 +1,23 @@
|
|||
---
|
||||
global-variables:
|
||||
release: &release ${DRONE_TAG}
|
||||
docker-registry-repo: &docker-registry-repo registry.fyloz.dev:5443/colorrecipesexplorer/backend
|
||||
environment: &environment
|
||||
JAVA_VERSION: 11
|
||||
GRADLE_VERSION: 7.1
|
||||
CRE_VERSION: dev-${DRONE_BUILD_NUMBER}
|
||||
CRE_ARTIFACT_NAME: ColorRecipesExplorer
|
||||
CRE_REGISTRY_IMAGE: registry.fyloz.dev:5443/colorrecipesexplorer/backend
|
||||
CRE_REGISTRY_IMAGE: *docker-registry-repo
|
||||
CRE_PORT: 9101
|
||||
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
|
||||
alpine-image: &alpine-image alpine:latest
|
||||
docker-registry-repo: &docker-registry-repo registry.fyloz.dev:5443/colorrecipesexplorer/backend
|
||||
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
@ -56,7 +62,7 @@ steps:
|
|||
- GRADLE_VERSION
|
||||
- JAVA_VERSION
|
||||
- CRE_VERSION
|
||||
repo: *docker-registry-repo
|
||||
<<: *docker-settings
|
||||
when:
|
||||
branch: develop
|
||||
event:
|
||||
|
@ -73,7 +79,7 @@ steps:
|
|||
- JAVA_VERSION
|
||||
build_args:
|
||||
- CRE_VERSION=${DRONE_TAG}
|
||||
repo: *docker-registry-repo
|
||||
<<: *docker-settings
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
|
Loading…
Reference in New Issue