mirror of
https://github.com/Traceworks2023/nxtgauge-ai-assistant.git
synced 2026-06-11 04:02:09 +00:00
- First step: crane copy base images from Docker Hub to registry.nxtgauge.com - rust:alpine, rust:1.87-alpine, alpine:3.20, node:20-alpine - Second step: kaniko build ai-assistant image - No DinD required - crane handles registry-to-registry copy
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
when:
|
|
branch: [main, high-performance]
|
|
event: push
|
|
|
|
steps:
|
|
- name: mirror-base-images
|
|
image: gcr.io/go-containerregistry/crane:debug
|
|
environment:
|
|
REG_USER:
|
|
from_secret: REGISTRY_USERNAME
|
|
REG_PASS:
|
|
from_secret: REGISTRY_PASSWORD
|
|
commands:
|
|
- crane auth login registry.nxtgauge.com -u "$REG_USER" -p "$REG_PASS"
|
|
- crane copy docker.io/library/rust:alpine registry.nxtgauge.com/rust:alpine
|
|
- crane copy docker.io/library/rust:1.87-alpine registry.nxtgauge.com/rust:1.87-alpine
|
|
- crane copy docker.io/library/alpine:3.20 registry.nxtgauge.com/alpine:3.20
|
|
- crane copy docker.io/library/node:20-alpine registry.nxtgauge.com/node:20-alpine
|
|
|
|
- name: build-and-push-ai-assistant
|
|
image: woodpeckerci/plugin-kaniko:2.1.1
|
|
settings:
|
|
registry: registry.nxtgauge.com
|
|
repo: nxtgauge-ai-assistant
|
|
dockerfile: Dockerfile
|
|
tags:
|
|
- ${CI_COMMIT_SHA}
|
|
- latest
|
|
- high-performance-latest
|
|
username:
|
|
from_secret: REGISTRY_USERNAME
|
|
password:
|
|
from_secret: REGISTRY_PASSWORD
|
|
insecure: true
|
|
insecure_pull: true
|
|
skip_tls_verify: true
|
|
platforms: linux/amd64
|
|
cache: false
|