fix(ci): quote secret guard command for valid yaml
This commit is contained in:
parent
83ccd127e6
commit
688e1347e0
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ steps:
|
|||
REGISTRY_PASSWORD:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
commands:
|
||||
- test -n "${REGISTRY_HOSTPORT}" && test -n "${REGISTRY_USERNAME}" && test -n "${REGISTRY_PASSWORD}" || (echo "Missing one or more required secrets: REGISTRY_HOSTPORT, REGISTRY_USERNAME, REGISTRY_PASSWORD" && exit 1)
|
||||
- 'test -n "${REGISTRY_HOSTPORT}" && test -n "${REGISTRY_USERNAME}" && test -n "${REGISTRY_PASSWORD}" || (echo "Missing one or more required secrets: REGISTRY_HOSTPORT, REGISTRY_USERNAME, REGISTRY_PASSWORD" && exit 1)'
|
||||
- echo "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOSTPORT}" -u "${REGISTRY_USERNAME}" --password-stdin
|
||||
- docker build -f Dockerfile.simple -t ${REGISTRY_HOSTPORT}/nxtgauge-admin-solid:${CI_COMMIT_SHA} -t ${REGISTRY_HOSTPORT}/nxtgauge-admin-solid:latest -t ${REGISTRY_HOSTPORT}/nxtgauge-admin-solid:high-performance-latest .
|
||||
- docker push ${REGISTRY_HOSTPORT}/nxtgauge-admin-solid:${CI_COMMIT_SHA}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue