You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
1.7 KiB

pipeline:
# build:
# image: registry.haktec.de/jekyll:86e0546618060dc5c7d00ff66ce218022768d4a0
# environment:
# TARGET: production
# commands:
# - make build
# when:
# branch:
# include: "*"
# exclude: staging
build_staging:
image: registry.haktec.de/hugo:04d0d7f0967508c9efe5678f96b90dc21a7d958b
commands:
- /app/bin/hugo --baseURL https://staging.blog.haktec.de/ --buildDrafts --ignoreCache
when:
branch:
- staging
package:
image: registry.haktec.de/docker:636402f9f2ddd0e29f31fd1369ad69a38cb72fef
environment:
TARGET: production
commands:
- make image
- make push
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
image: quay.io/honestbee/drone-kubernetes:master
deployment: de-haktec-blog-staging
kubernetes_server: ${KUBERNETES_SERVER}
# kubernetes_cert: ${KUBERNETES_CERT}
kubernetes_token: ${KUBERNETES_TOKEN}
repo: registry.haktec.de/blog
container: blog
tag: ${DRONE_COMMIT_SHA}
namespace: default
when:
branch:
- staging
secrets:
- KUBERNETES_SERVER
# - KUBERNETES_CERT
- KUBERNETES_TOKEN
# deploy:
# image: quay.io/honestbee/drone-kubernetes:master
# deployment: de-haktec-blog
# kubernetes_server: ${KUBERNETES_SERVER}
# # kubernetes_cert: ${KUBERNETES_CERT}
# kubernetes_token: ${KUBERNETES_TOKEN}
# repo: registry.haktec.de/blog
# container: blog
# tag: ${DRONE_COMMIT_SHA}
# namespace: default
# when:
# branch:
# - master
# secrets:
# - KUBERNETES_SERVER
# # - KUBERNETES_CERT
# - KUBERNETES_TOKEN