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