2026-04-15 18:24:05 +02:00
|
|
|
when:
|
|
|
|
|
branch: [main, high-performance]
|
|
|
|
|
event: push
|
|
|
|
|
|
|
|
|
|
steps:
|
2026-04-16 21:12:37 +02:00
|
|
|
- name: login-registry
|
|
|
|
|
image: alpine:3.20
|
|
|
|
|
commands:
|
|
|
|
|
- echo "${REGISTRY_PASSWORD}" | docker login registry.nxtgauge.com -u "${REGISTRY_USERNAME}" --password-stdin
|
|
|
|
|
|
2026-04-15 18:24:05 +02:00
|
|
|
- name: build-and-push
|
2026-04-16 21:12:37 +02:00
|
|
|
image: docker:28-cli
|
|
|
|
|
volumes:
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
environment:
|
|
|
|
|
REGISTRY_USERNAME:
|
2026-04-15 18:24:05 +02:00
|
|
|
from_secret: REGISTRY_USERNAME
|
2026-04-16 21:12:37 +02:00
|
|
|
REGISTRY_PASSWORD:
|
2026-04-15 18:24:05 +02:00
|
|
|
from_secret: REGISTRY_PASSWORD
|
2026-04-16 21:12:37 +02:00
|
|
|
commands:
|
|
|
|
|
- docker build -t registry.nxtgauge.com/nxtgauge-ai-assistant:latest -f Dockerfile .
|
|
|
|
|
- docker push registry.nxtgauge.com/nxtgauge-ai-assistant:latest
|