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

This commit is contained in:
FyloZ 2022-01-23 00:40:54 -05:00
parent 1a1aa0e675
commit bdcd7195ac
Signed by: william
GPG Key ID: 835378AE9AF4AE97
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,6 @@
---
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
@ -12,6 +11,8 @@ global-variables:
CRE_RELEASE: *release
gradle-image: &gradle-image gradle:7.1-jdk11
alpine-image: &alpine-image alpine:latest
docker-registry: &docker-registry registry.fyloz.dev:5443
docker-registry-repo: &docker-registry-repo registry.fyloz.dev:5443/colorrecipesexplorer/backend
kind: pipeline
name: default
@ -56,6 +57,7 @@ steps:
- GRADLE_VERSION
- JAVA_VERSION
- CRE_VERSION
registry: *docker-registry
repo: *docker-registry-repo
username:
from_secret: docker_username
@ -77,6 +79,7 @@ steps:
- JAVA_VERSION
build_args:
- CRE_VERSION=${DRONE_TAG}
registry: *docker-registry
repo: *docker-registry-repo
username:
from_secret: docker_username