2022-05-23 22:21:41 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
|
2024-10-20 14:08:06 +00:00
|
|
|
clone:
|
|
|
|
depth: 1
|
|
|
|
|
2024-10-20 14:28:56 +00:00
|
|
|
workspace:
|
|
|
|
path: /src
|
|
|
|
|
2024-07-27 18:53:15 +00:00
|
|
|
name: Build and Deploy
|
2022-05-23 22:21:41 +00:00
|
|
|
steps:
|
2024-02-10 16:59:05 +00:00
|
|
|
- name: Build site with Hugo
|
2024-10-20 14:28:56 +00:00
|
|
|
image: floryn90/hugo:ext-alpine-ci
|
|
|
|
user: root
|
2022-07-05 12:51:22 +00:00
|
|
|
environment:
|
|
|
|
HUGO_SECURITY_HTTP_URLS: none
|
2024-10-20 14:28:56 +00:00
|
|
|
commands:
|
|
|
|
- git submodule update --init --single-branch --depth=1
|
|
|
|
- hugo
|
2022-05-23 22:21:41 +00:00
|
|
|
|
2024-02-10 16:59:05 +00:00
|
|
|
- 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
|
2022-05-23 22:53:10 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
exclude:
|
2024-02-10 16:59:05 +00:00
|
|
|
- pull_request
|