Add authentication to CI/CD
continuous-integration/drone/push Build is failing Details

This commit is contained in:
FyloZ 2022-01-22 00:04:11 -05:00
parent c45892f932
commit 1cc1b36443
Signed by: william
GPG Key ID: 835378AE9AF4AE97
1 changed files with 10 additions and 4 deletions

View File

@ -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