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:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
image: registry.nxtgauge.com/docker:28-cli
|
||||||
settings:
|
environment:
|
||||||
registry:
|
REGISTRY_HOSTPORT:
|
||||||
from_secret: REGISTRY_HOSTPORT
|
from_secret: REGISTRY_HOSTPORT
|
||||||
repo: nxtgauge-ai-assistant
|
REGISTRY_USERNAME:
|
||||||
dockerfile: Dockerfile
|
|
||||||
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
|
- echo "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOSTPORT}" -u "${REGISTRY_USERNAME}" --password-stdin
|
||||||
skip_tls_verify: true
|
- docker build -t "${REGISTRY_HOSTPORT}/nxtgauge-ai-assistant" -f Dockerfile .
|
||||||
platforms: linux/amd64
|
- docker push "${REGISTRY_HOSTPORT}/nxtgauge-ai-assistant"
|
||||||
cache: false
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue