ci: explicitly wire secrets with from_secret in environment
This commit is contained in:
parent
c93babe5cd
commit
2cea7b8bfb
1 changed files with 6 additions and 11 deletions
|
|
@ -2,21 +2,16 @@ when:
|
|||
branch: [main, high-performance]
|
||||
event: push
|
||||
|
||||
secrets:
|
||||
- secret: REGISTRY_HOSTPORT
|
||||
name: REGISTRY_HOSTPORT
|
||||
- secret: REGISTRY_USERNAME
|
||||
name: REGISTRY_USERNAME
|
||||
- secret: REGISTRY_PASSWORD
|
||||
name: REGISTRY_PASSWORD
|
||||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: registry.nxtgauge.com/docker:28-cli
|
||||
environment:
|
||||
REGISTRY_HOSTPORT: ${REGISTRY_HOSTPORT}
|
||||
REGISTRY_USERNAME: ${REGISTRY_USERNAME}
|
||||
REGISTRY_PASSWORD: ${REGISTRY_PASSWORD}
|
||||
REGISTRY_HOSTPORT:
|
||||
from_secret: REGISTRY_HOSTPORT
|
||||
REGISTRY_USERNAME:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
commands:
|
||||
- echo "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOSTPORT}" -u "${REGISTRY_USERNAME}" --password-stdin
|
||||
- docker build -t "${REGISTRY_HOSTPORT}/nxtgauge-admin-solid" -f Dockerfile.simple .
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue