ci: fix kaniko builds and registry settings
This commit is contained in:
parent
737280db10
commit
fd99e8cea1
3 changed files with 6 additions and 2 deletions
|
|
@ -29,7 +29,8 @@ steps:
|
|||
- name: build-and-push
|
||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
||||
settings:
|
||||
registry: registry.nxtgauge.com
|
||||
registry:
|
||||
from_secret: REGISTRY_HOSTPORT
|
||||
username:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
|
|
@ -52,7 +53,8 @@ steps:
|
|||
- name: build-and-push-migrate
|
||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
||||
settings:
|
||||
registry: registry.nxtgauge.com
|
||||
registry:
|
||||
from_secret: REGISTRY_HOSTPORT
|
||||
username:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
password:
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ FROM registry.nxtgauge.com/rust:alpine AS builder
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
RUN command -v cargo >/dev/null 2>&1 || apk add --no-cache cargo rust
|
||||
RUN apk add --no-cache musl-dev pkgconfig openssl-dev
|
||||
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ FROM registry.nxtgauge.com/rust:alpine AS builder
|
|||
ARG SERVICE_NAME
|
||||
|
||||
# Install deps
|
||||
RUN command -v cargo >/dev/null 2>&1 || apk add --no-cache cargo rust
|
||||
RUN apk add --no-cache musl-dev pkgconfig openssl-dev openssl-libs-static
|
||||
|
||||
WORKDIR /app
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue