diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..99f172fe --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 70886127..e5aefcaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \