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
|
- name: build-and-push
|
||||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
image: registry.nxtgauge.com/kaniko:2.1.1
|
||||||
settings:
|
settings:
|
||||||
registry: registry.nxtgauge.com
|
registry:
|
||||||
|
from_secret: REGISTRY_HOSTPORT
|
||||||
username:
|
username:
|
||||||
from_secret: REGISTRY_USERNAME
|
from_secret: REGISTRY_USERNAME
|
||||||
password:
|
password:
|
||||||
|
|
@ -52,7 +53,8 @@ steps:
|
||||||
- name: build-and-push-migrate
|
- name: build-and-push-migrate
|
||||||
image: registry.nxtgauge.com/kaniko:2.1.1
|
image: registry.nxtgauge.com/kaniko:2.1.1
|
||||||
settings:
|
settings:
|
||||||
registry: registry.nxtgauge.com
|
registry:
|
||||||
|
from_secret: REGISTRY_HOSTPORT
|
||||||
username:
|
username:
|
||||||
from_secret: REGISTRY_USERNAME
|
from_secret: REGISTRY_USERNAME
|
||||||
password:
|
password:
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ FROM registry.nxtgauge.com/rust:alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
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
|
RUN apk add --no-cache musl-dev pkgconfig openssl-dev
|
||||||
|
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ FROM registry.nxtgauge.com/rust:alpine AS builder
|
||||||
ARG SERVICE_NAME
|
ARG SERVICE_NAME
|
||||||
|
|
||||||
# Install deps
|
# 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
|
RUN apk add --no-cache musl-dev pkgconfig openssl-dev openssl-libs-static
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue