forked from data.coop/website
79 lines
1.8 KiB
YAML
79 lines
1.8 KiB
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build_stable
|
|
image: klakegg/hugo:ext-alpine-ci
|
|
environment:
|
|
HUGO_SECURITY_HTTP_URLS: none
|
|
commands:
|
|
- hugo --destination _site/
|
|
when:
|
|
branch:
|
|
- main
|
|
|
|
- name: build_staging
|
|
image: klakegg/hugo:ext-alpine-ci
|
|
environment:
|
|
HUGO_SECURITY_HTTP_URLS: none
|
|
commands:
|
|
- hugo --baseURL "https://staging.data.coop" --destination _site/
|
|
when:
|
|
branch:
|
|
- staging
|
|
|
|
# stable site
|
|
- name: docker_stable
|
|
image: plugins/docker
|
|
settings:
|
|
repo: docker.data.coop/data-coop-website
|
|
registry: docker.data.coop
|
|
username:
|
|
from_secret: DOCKER_USERNAME
|
|
password:
|
|
from_secret: DOCKER_PASSWORD
|
|
tags:
|
|
- "${DRONE_BUILD_NUMBER}"
|
|
- "stable"
|
|
when:
|
|
branch:
|
|
- main
|
|
event:
|
|
exclude:
|
|
- pull_request
|
|
|
|
# staging site
|
|
- name: docker_staging
|
|
image: plugins/docker
|
|
settings:
|
|
repo: docker.data.coop/data-coop-website
|
|
registry: docker.data.coop
|
|
username:
|
|
from_secret: DOCKER_USERNAME
|
|
password:
|
|
from_secret: DOCKER_PASSWORD
|
|
tags:
|
|
- "${DRONE_BUILD_NUMBER}"
|
|
- "staging"
|
|
when:
|
|
branch:
|
|
- staging
|
|
event:
|
|
exclude:
|
|
- pull_request
|
|
|
|
# - name: notify
|
|
# image: spotlightkid/drone-matrixchat-notify:latest
|
|
# settings:
|
|
# homeserver: https://data.coop
|
|
# roomid: '!plKSghHbepWeUEtbHE:data.coop'
|
|
# userid:
|
|
# from_secret: matrix_username
|
|
# password:
|
|
# from_secret: matrix_password
|
|
# markdown: 'yes'
|
|
# template: |
|
|
# `${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**
|
|
#
|
|
# ${DRONE_PULL_REQUEST_TITLE}](${DRONE_COMMIT_LINK})
|