when: branch: [main, high-performance] event: push 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 steps: - name: build-and-push image: registry.nxtgauge.com/kaniko:2.1.1 settings: registry: from_secret: REGISTRY_HOSTPORT username: from_secret: REGISTRY_USERNAME password: from_secret: REGISTRY_PASSWORD repo: nxtgauge-rust-${SERVICE} tags: - ${CI_COMMIT_SHA} - ${CI_COMMIT_BRANCH}-latest dockerfile: Dockerfile.simple context: . build_args: - SERVICE_NAME=${SERVICE} --- when: branch: [main, high-performance] event: push steps: - name: build-and-push-migrate image: registry.nxtgauge.com/kaniko:2.1.1 settings: registry: from_secret: REGISTRY_HOSTPORT username: from_secret: REGISTRY_USERNAME password: from_secret: REGISTRY_PASSWORD repo: nxtgauge-db-migrate tags: - ${CI_COMMIT_SHA} - ${CI_COMMIT_BRANCH}-latest dockerfile: Dockerfile.migrate context: .