ci: use docker cli instead of kaniko - more reliable with registry configuration
This commit is contained in:
parent
9dae12df35
commit
83cacb8c62
1 changed files with 20 additions and 60 deletions
|
|
@ -5,51 +5,20 @@ when:
|
||||||
concurrency:
|
concurrency:
|
||||||
limit: 4
|
limit: 4
|
||||||
|
|
||||||
matrix:
|
|
||||||
SERVICE:
|
|
||||||
- gateway
|
|
||||||
- users
|
|
||||||
- companies
|
|
||||||
- jobs
|
|
||||||
- leads
|
|
||||||
- job-seekers
|
|
||||||
- customers
|
|
||||||
- payments
|
|
||||||
- employees
|
|
||||||
- photographers
|
|
||||||
- makeup-artists
|
|
||||||
- tutors
|
|
||||||
- developers
|
|
||||||
- video-editors
|
|
||||||
- graphic-designers
|
|
||||||
- social-media-managers
|
|
||||||
- fitness-trainers
|
|
||||||
- catering-services
|
|
||||||
- ugc-content-creators
|
|
||||||
- cron
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: login-and-push
|
||||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
image: docker:28-cli
|
||||||
settings:
|
environment:
|
||||||
registry: registry.nxtgauge.com
|
REGISTRY_USERNAME:
|
||||||
repo: nxtgauge-rust-${SERVICE}
|
|
||||||
dockerfile: Dockerfile.simple
|
|
||||||
build_args:
|
|
||||||
- SERVICE_NAME=${SERVICE}
|
|
||||||
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
|
SERVICE_NAME:
|
||||||
insecure_pull: true
|
from_secret: SERVICE_NAME
|
||||||
skip_tls_verify: true
|
commands:
|
||||||
platforms: linux/amd64
|
- echo "${REGISTRY_PASSWORD}" | docker login registry.nxtgauge.com -u "${REGISTRY_USERNAME}" --password-stdin
|
||||||
cache: false
|
- docker build -t registry.nxtgauge.com/nxtgauge-rust-${SERVICE_NAME} --build-arg SERVICE_NAME=${SERVICE_NAME} -f Dockerfile.simple .
|
||||||
|
- docker push registry.nxtgauge.com/nxtgauge-rust-${SERVICE_NAME}
|
||||||
|
|
||||||
---
|
---
|
||||||
when:
|
when:
|
||||||
|
|
@ -57,23 +26,14 @@ when:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push-migrate
|
- name: login-and-push-migrate
|
||||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
image: docker:28-cli
|
||||||
settings:
|
environment:
|
||||||
registry: registry.nxtgauge.com
|
REGISTRY_USERNAME:
|
||||||
repo: nxtgauge-db-migrate
|
|
||||||
dockerfile: Dockerfile.migrate
|
|
||||||
context: .
|
|
||||||
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.nxtgauge.com -u "${REGISTRY_USERNAME}" --password-stdin
|
||||||
skip_tls_verify: true
|
- docker build -t registry.nxtgauge.com/nxtgauge-db-migrate -f Dockerfile.migrate .
|
||||||
platforms: linux/amd64
|
- docker push registry.nxtgauge.com/nxtgauge-db-migrate
|
||||||
cache: false
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue