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