32 lines
682 B
YAML
32 lines
682 B
YAML
kind: pipeline
|
|
type: docker
|
|
|
|
name: Build and Deplo
|
|
steps:
|
|
- name: Build site with Hugo
|
|
image: klakegg/hugo:ext-alpine-ci
|
|
environment:
|
|
HUGO_SECURITY_HTTP_URLS: none
|
|
commands:
|
|
- apk add --no-cache git py3-pygments
|
|
- git submodule update --init --single-branch --depth=1
|
|
- hugo
|
|
|
|
- name: Build and push Docker image
|
|
image: plugins/docker
|
|
settings:
|
|
repo: samsapti/website
|
|
username:
|
|
from_secret: DOCKER_USERNAME
|
|
password:
|
|
from_secret: DOCKER_PASSWORD
|
|
tags:
|
|
- "${DRONE_BUILD_NUMBER}"
|
|
- latest
|
|
when:
|
|
branch:
|
|
- main
|
|
event:
|
|
exclude:
|
|
- pull_request
|