ci: use docker cli instead of kaniko
This commit is contained in:
parent
04d8b7b8d0
commit
d3b316a4ad
1 changed files with 9 additions and 17 deletions
|
|
@ -3,22 +3,14 @@ when:
|
|||
event: push
|
||||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
||||
settings:
|
||||
registry: registry.nxtgauge.com
|
||||
repo: nxtgauge-ai-assistant
|
||||
dockerfile: Dockerfile
|
||||
tags:
|
||||
- ${CI_COMMIT_SHA}
|
||||
- latest
|
||||
- high-performance-latest
|
||||
username:
|
||||
- name: login-and-push
|
||||
image: docker:28-cli
|
||||
environment:
|
||||
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.nxtgauge.com -u "${REGISTRY_USERNAME}" --password-stdin
|
||||
- docker build -t registry.nxtgauge.com/nxtgauge-ai-assistant -f Dockerfile .
|
||||
- docker push registry.nxtgauge.com/nxtgauge-ai-assistant
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue