ci: use docker build instead of kaniko for ai-assistant
- Use docker:28-cli with docker build/push instead of kaniko - Fixes 200 OK /blobs/uploads error from registry
This commit is contained in:
parent
320e683a1b
commit
92e2d42d5c
1 changed files with 14 additions and 16 deletions
|
|
@ -3,22 +3,20 @@ when:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: login-registry
|
||||||
|
image: alpine:3.20
|
||||||
|
commands:
|
||||||
|
- echo "${REGISTRY_PASSWORD}" | docker login registry.nxtgauge.com -u "${REGISTRY_USERNAME}" --password-stdin
|
||||||
|
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: woodpeckerci/plugin-kaniko:2.1.1
|
image: docker:28-cli
|
||||||
settings:
|
volumes:
|
||||||
registry: registry.nxtgauge.com
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
repo: nxtgauge-ai-assistant
|
environment:
|
||||||
dockerfile: Dockerfile
|
REGISTRY_USERNAME:
|
||||||
tags:
|
|
||||||
- ${CI_COMMIT_SHA}
|
|
||||||
- latest
|
|
||||||
- high-performance-latest
|
|
||||||
username:
|
|
||||||
from_secret: REGISTRY_USERNAME
|
from_secret: REGISTRY_USERNAME
|
||||||
password:
|
REGISTRY_PASSWORD:
|
||||||
from_secret: REGISTRY_PASSWORD
|
from_secret: REGISTRY_PASSWORD
|
||||||
insecure: true
|
commands:
|
||||||
insecure_pull: true
|
- docker build -t registry.nxtgauge.com/nxtgauge-ai-assistant:latest -f Dockerfile .
|
||||||
skip_tls_verify: true
|
- docker push registry.nxtgauge.com/nxtgauge-ai-assistant:latest
|
||||||
platforms: linux/amd64
|
|
||||||
cache: false
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue