Docker datacontainer

This commit is contained in:
NeonXP 2023-11-15 01:37:39 +03:00
parent 260e6f1c8a
commit 24130f6f90
3 changed files with 28 additions and 12 deletions

View file

View file

@ -1,18 +1,13 @@
pipeline:
build:
image: ariejan/drone-hugo
settings:
hugo_version: 0.89.3
steps:
deploy:
image: appleboy/drone-scp
image: plugins/docker
settings:
host: neonxp.dev
registry: gitrepo.ru
username: neonxp
key:
from_secret: ssh_key
port: 22
target: /var/volumes/www/neonxp.dev
source: public
password:
from_secret: gitea_token
repo: gitrepo.ru/neonxp/blog
tags: latest
notify:
image: appleboy/drone-telegram
settings:

21
Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM alpine:latest
RUN apk add --no-cache \
ca-certificates \
mailcap \
git \
wget \
libc6-compat \
libstdc++
WORKDIR /app
COPY . .
ARG HUGO_VERSION="0.89.3"
ARG HUGO_ARCH="64bit"
ARG HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz"
RUN wget -q -O- ${HUGO_URL} | tar xz -C /usr/local/bin
ENTRYPOINT [ "hugo" ]