samsapti.dev/.drone.yml
Sam A. d7d6aba03c
All checks were successful
continuous-integration/drone/push Build is passing
Switch Docker image for CI pipeline
2024-07-26 19:27:49 +02:00

32 lines
683 B
YAML

kind: pipeline
type: docker
name: Build and Deplo
steps:
- name: Build site with Hugo
image: floryn90/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