2026-04-09 00:09:04 +02:00
|
|
|
when:
|
2026-04-10 05:17:56 +02:00
|
|
|
branch: [main, high-performance]
|
2026-04-09 00:09:04 +02:00
|
|
|
event: push
|
|
|
|
|
|
2026-04-17 00:32:57 +02:00
|
|
|
matrix:
|
|
|
|
|
SERVICE:
|
|
|
|
|
- gateway
|
|
|
|
|
- users
|
|
|
|
|
- companies
|
|
|
|
|
- jobs
|
|
|
|
|
- leads
|
|
|
|
|
- job-seekers
|
|
|
|
|
- customers
|
|
|
|
|
- payments
|
|
|
|
|
- employees
|
|
|
|
|
- photographers
|
|
|
|
|
- makeup-artists
|
|
|
|
|
- tutors
|
|
|
|
|
- developers
|
|
|
|
|
- video-editors
|
|
|
|
|
- graphic-designers
|
|
|
|
|
- social-media-managers
|
|
|
|
|
- fitness-trainers
|
|
|
|
|
- catering-services
|
|
|
|
|
- ugc-content-creators
|
|
|
|
|
- cron
|
|
|
|
|
|
2026-04-16 22:16:33 +02:00
|
|
|
steps:
|
2026-04-17 13:49:59 +02:00
|
|
|
- name: validate-registry-secrets
|
|
|
|
|
image: registry.nxtgauge.com/alpine:3.20
|
|
|
|
|
environment:
|
|
|
|
|
REGISTRY_HOSTPORT:
|
|
|
|
|
from_secret: REGISTRY_HOSTPORT
|
|
|
|
|
REGISTRY_USERNAME:
|
|
|
|
|
from_secret: REGISTRY_USERNAME
|
|
|
|
|
REGISTRY_PASSWORD:
|
|
|
|
|
from_secret: REGISTRY_PASSWORD
|
|
|
|
|
commands:
|
|
|
|
|
- test -n "${REGISTRY_HOSTPORT:-}" || (echo "missing REGISTRY_HOSTPORT" && exit 1)
|
|
|
|
|
- test -n "${REGISTRY_USERNAME:-}" || (echo "missing REGISTRY_USERNAME" && exit 1)
|
|
|
|
|
- test -n "${REGISTRY_PASSWORD:-}" || (echo "missing REGISTRY_PASSWORD" && exit 1)
|
2026-04-17 13:51:40 +02:00
|
|
|
- 'test "${REGISTRY_HOSTPORT}" = "registry.nxtgauge.com" || (echo "REGISTRY_HOSTPORT must be registry.nxtgauge.com (got ${REGISTRY_HOSTPORT})" && exit 1)'
|
2026-04-17 13:49:59 +02:00
|
|
|
|
2026-04-17 00:38:21 +02:00
|
|
|
- name: build-and-push
|
2026-04-17 03:00:37 +02:00
|
|
|
image: registry.nxtgauge.com/kaniko:2.1.1
|
|
|
|
|
settings:
|
2026-04-17 13:49:59 +02:00
|
|
|
registry: registry.nxtgauge.com
|
2026-04-17 03:00:37 +02:00
|
|
|
username:
|
2026-04-17 01:10:52 +02:00
|
|
|
from_secret: REGISTRY_USERNAME
|
2026-04-17 03:00:37 +02:00
|
|
|
password:
|
2026-04-17 01:10:52 +02:00
|
|
|
from_secret: REGISTRY_PASSWORD
|
2026-04-17 03:00:37 +02:00
|
|
|
repo: nxtgauge-rust-${SERVICE}
|
|
|
|
|
tags:
|
|
|
|
|
- ${CI_COMMIT_SHA}
|
|
|
|
|
- ${CI_COMMIT_BRANCH}-latest
|
|
|
|
|
dockerfile: Dockerfile.simple
|
|
|
|
|
context: .
|
|
|
|
|
build_args:
|
|
|
|
|
- SERVICE_NAME=${SERVICE}
|
2026-04-12 21:57:28 +02:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
when:
|
|
|
|
|
branch: [main, high-performance]
|
|
|
|
|
event: push
|
|
|
|
|
|
|
|
|
|
steps:
|
2026-04-17 13:49:59 +02:00
|
|
|
- name: validate-registry-secrets
|
|
|
|
|
image: registry.nxtgauge.com/alpine:3.20
|
|
|
|
|
environment:
|
|
|
|
|
REGISTRY_HOSTPORT:
|
|
|
|
|
from_secret: REGISTRY_HOSTPORT
|
|
|
|
|
REGISTRY_USERNAME:
|
|
|
|
|
from_secret: REGISTRY_USERNAME
|
|
|
|
|
REGISTRY_PASSWORD:
|
|
|
|
|
from_secret: REGISTRY_PASSWORD
|
|
|
|
|
commands:
|
|
|
|
|
- test -n "${REGISTRY_HOSTPORT:-}" || (echo "missing REGISTRY_HOSTPORT" && exit 1)
|
|
|
|
|
- test -n "${REGISTRY_USERNAME:-}" || (echo "missing REGISTRY_USERNAME" && exit 1)
|
|
|
|
|
- test -n "${REGISTRY_PASSWORD:-}" || (echo "missing REGISTRY_PASSWORD" && exit 1)
|
2026-04-17 13:51:40 +02:00
|
|
|
- 'test "${REGISTRY_HOSTPORT}" = "registry.nxtgauge.com" || (echo "REGISTRY_HOSTPORT must be registry.nxtgauge.com (got ${REGISTRY_HOSTPORT})" && exit 1)'
|
2026-04-17 13:49:59 +02:00
|
|
|
|
2026-04-17 00:38:21 +02:00
|
|
|
- name: build-and-push-migrate
|
2026-04-17 03:00:37 +02:00
|
|
|
image: registry.nxtgauge.com/kaniko:2.1.1
|
|
|
|
|
settings:
|
2026-04-17 13:49:59 +02:00
|
|
|
registry: registry.nxtgauge.com
|
2026-04-17 03:00:37 +02:00
|
|
|
username:
|
2026-04-17 01:10:52 +02:00
|
|
|
from_secret: REGISTRY_USERNAME
|
2026-04-17 03:00:37 +02:00
|
|
|
password:
|
2026-04-17 01:10:52 +02:00
|
|
|
from_secret: REGISTRY_PASSWORD
|
2026-04-17 03:00:37 +02:00
|
|
|
repo: nxtgauge-db-migrate
|
|
|
|
|
tags:
|
|
|
|
|
- ${CI_COMMIT_SHA}
|
|
|
|
|
- ${CI_COMMIT_BRANCH}-latest
|
|
|
|
|
dockerfile: Dockerfile.migrate
|
|
|
|
|
context: .
|