samsapti.dev/.drone.yml
Sam A. 11affc28d6
All checks were successful
continuous-integration/drone/push Build is passing
Build a Docker image
2024-02-10 17:59:05 +01:00

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