18 lines
629 B
YAML
18 lines
629 B
YAML
when:
|
|
branch: [main, high-performance]
|
|
event: push
|
|
|
|
steps:
|
|
- name: build-and-push
|
|
image: registry.nxtgauge.com/docker:28-cli
|
|
environment:
|
|
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-frontend-solid" -f Dockerfile .
|
|
- docker push "${REGISTRY_HOSTPORT}/nxtgauge-frontend-solid"
|