Drone fixes #1

Closed
adam wants to merge 6 commits from ci into trunk
2 changed files with 26 additions and 8 deletions

View File

@ -1,17 +1,35 @@
---
kind: pipeline
type: kubernetes
name: Publish
name: PR Build
trigger:
event:
- cron
- push
branch:
- trunk
- cron
steps:
- name: kaniko
- name: Build & Publish
image: plugins/kaniko
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: vdhsn/garden
tags:
- ${DRONE_COMMIT_SHA}
- ${DRONE_BRANCH}
---
kind: pipeline
type: kubernetes
name: Deploy
trigger:
event:
- promote
steps:
- name: Publish Latest
image: plugins/kaniko
settings:
username:

View File

@ -8,8 +8,8 @@ RUN apk add --no-cache git hugo make && make build
FROM nginx
ARG SHA = "local-dev"
ARG BUILD_DATE = "03-11-2022"
# ARG SHA "local-dev"
# ARG BUILD_DATE "03-11-2022"
LABEL org.opencontainers.image.created ${BUILD_DATE}
LABEL org.opencontainers.image.source https://git.vdhsn.com/adam/garden.git