samsapti.dev/.drone.yml
Sam A. f6d53e46b0
All checks were successful
continuous-integration/drone/push Build is passing
Fix .drone.yml
2024-10-20 16:28:56 +02:00

38 lines
699 B
YAML

kind: pipeline
type: docker
clone:
depth: 1
workspace:
path: /src
name: Build and Deploy
steps:
- name: Build site with Hugo
image: floryn90/hugo:ext-alpine-ci
user: root
environment:
HUGO_SECURITY_HTTP_URLS: none
commands:
- 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