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:
|
||||
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:
|
||||
- name: build-and-push
|
||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
||||
settings:
|
||||
registry: registry.nxtgauge.com
|
||||
repo: nxtgauge-rust-${SERVICE}
|
||||
dockerfile: Dockerfile.simple
|
||||
build_args:
|
||||
- SERVICE_NAME=${SERVICE}
|
||||
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
|
||||
SERVICE_NAME:
|
||||
from_secret: SERVICE_NAME
|
||||
commands:
|
||||
- echo "${REGISTRY_PASSWORD}" | docker login registry.nxtgauge.com -u "${REGISTRY_USERNAME}" --password-stdin
|
||||
- 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:
|
||||
|
|
@ -57,23 +26,14 @@ when:
|
|||
event: push
|
||||
|
||||
steps:
|
||||
- name: build-and-push-migrate
|
||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
||||
settings:
|
||||
registry: registry.nxtgauge.com
|
||||
repo: nxtgauge-db-migrate
|
||||
dockerfile: Dockerfile.migrate
|
||||
context: .
|
||||
tags:
|
||||
- ${CI_COMMIT_SHA}
|
||||
- latest
|
||||
- high-performance-latest
|
||||
username:
|
||||
- name: login-and-push-migrate
|
||||
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-db-migrate -f Dockerfile.migrate .
|
||||
- docker push registry.nxtgauge.com/nxtgauge-db-migrate
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue