ci: use kaniko, registry host from secret, remove hardcoded values
This commit is contained in:
parent
1570deef18
commit
63aa8804d4
1 changed files with 17 additions and 10 deletions
|
|
@ -3,16 +3,23 @@ when:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: login-and-push
|
- name: build-and-push
|
||||||
image: docker:28-cli
|
image: woodpeckerci/plugin-kaniko:2.1.1
|
||||||
environment:
|
settings:
|
||||||
REGISTRY_HOSTPORT:
|
registry:
|
||||||
from_secret: REGISTRY_HOSTPORT
|
from_secret: REGISTRY_HOSTPORT
|
||||||
REGISTRY_USERNAME:
|
repo: nxtgauge-ai-assistant
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
tags:
|
||||||
|
- ${CI_COMMIT_SHA}
|
||||||
|
- latest
|
||||||
|
- high-performance-latest
|
||||||
|
username:
|
||||||
from_secret: REGISTRY_USERNAME
|
from_secret: REGISTRY_USERNAME
|
||||||
REGISTRY_PASSWORD:
|
password:
|
||||||
from_secret: REGISTRY_PASSWORD
|
from_secret: REGISTRY_PASSWORD
|
||||||
commands:
|
insecure: true
|
||||||
- echo "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOSTPORT}" -u "${REGISTRY_USERNAME}" --password-stdin
|
insecure_pull: true
|
||||||
- docker build -t "${REGISTRY_HOSTPORT}/nxtgauge-ai-assistant" -f Dockerfile .
|
skip_tls_verify: true
|
||||||
- docker push "${REGISTRY_HOSTPORT}/nxtgauge-ai-assistant"
|
platforms: linux/amd64
|
||||||
|
cache: false
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue