This commit is contained in:
parent
740c09ce6d
commit
acd8a0e93e
2 changed files with 32 additions and 2 deletions
30
.drone.yml
Normal file
30
.drone.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
kind: secret
|
||||
name: local_username
|
||||
get:
|
||||
path: local
|
||||
name: username
|
||||
---
|
||||
kind: secret
|
||||
name: local_password
|
||||
get:
|
||||
path: local
|
||||
name: password
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: build
|
||||
steps:
|
||||
- name: kaniko
|
||||
image: docker.io/plugins/kaniko:latest
|
||||
pull: always
|
||||
settings:
|
||||
repository: r.ocj.io/gis/umap
|
||||
registry: r.ocj.io
|
||||
tags:
|
||||
- "latest"
|
||||
- "umap-${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_SHA:0:8}"
|
||||
username:
|
||||
from_secret: local_username
|
||||
password:
|
||||
from_secret: local_password
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:alpine AS vendors
|
||||
FROM dockert.io/library/node:alpine AS vendors
|
||||
|
||||
RUN apk add git
|
||||
|
||||
|
@ -13,7 +13,7 @@ COPY . .
|
|||
RUN npm run vendors
|
||||
|
||||
# This part installs deps needed at runtime.
|
||||
FROM python:3.11-slim as common
|
||||
FROM docker.io/library/python:3.11-slim as common
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
|
|
Loading…
Reference in a new issue