From c4e68ac9592922ea06345bff77f5b50c00b4c778 Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Thu, 19 May 2022 16:12:54 -0700 Subject: [PATCH] Testing drone setup --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2307fce --- /dev/null +++ b/.drone.yml @@ -0,0 +1,33 @@ +kind: pipeline +name: hello-world +type: docker + +platform: + os: linux + arch: arm64 + +steps: + - name: build-blog + image: alpine + # Very unlikely to need updates, and pulling images seems slow on this setup - + # can manually reset this if necessary + pull: if-not-exists + commands: + # I considered caching this install in a pre-built image in registry, + # but the install seems pretty quick! + - apk add hugo git + - git submodule init + - git submodule update --recursive + - hugo --source blog + - |- + cat << EOF > Dockerfile + FROM nginxinc/nginx-unprivileged + COPY blog/public /usr/share/nginx/html + EOF + - name: push-built-image + image: plugins/docker + settings: + debug: true + repo: rassigma.avril:5000/scubbo/blog_nginx + tags: built_in_ci + insecure: true \ No newline at end of file