ci: use docker cli directly - images already in registry
This commit is contained in:
parent
d3ff06c438
commit
60d0aa1fb8
1 changed files with 9 additions and 16 deletions
|
|
@ -4,22 +4,15 @@ when:
|
|||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
||||
settings:
|
||||
registry:
|
||||
image: registry.nxtgauge.com/docker:28-cli
|
||||
environment:
|
||||
REGISTRY_HOSTPORT:
|
||||
from_secret: REGISTRY_HOSTPORT
|
||||
repo: nxtgauge-ai-assistant
|
||||
dockerfile: Dockerfile
|
||||
tags:
|
||||
- ${CI_COMMIT_SHA}
|
||||
- latest
|
||||
- high-performance-latest
|
||||
username:
|
||||
REGISTRY_USERNAME:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
insecure: true
|
||||
insecure_pull: true
|
||||
skip_tls_verify: true
|
||||
platforms: linux/amd64
|
||||
cache: false
|
||||
commands:
|
||||
- echo "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOSTPORT}" -u "${REGISTRY_USERNAME}" --password-stdin
|
||||
- docker build -t "${REGISTRY_HOSTPORT}/nxtgauge-ai-assistant" -f Dockerfile .
|
||||
- docker push "${REGISTRY_HOSTPORT}/nxtgauge-ai-assistant"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue