Browse Source

Migrate to drone.

- Remove concourse config.
pull/15/head
Robert Jacob 1 month ago
parent
commit
d668ee58f3
6 changed files with 36 additions and 72 deletions
  1. 36
    0
      .drone.yml
  2. 0
    1
      _ci/.gitignore
  3. 0
    6
      _ci/build.sh
  4. 0
    12
      _ci/build.yml
  5. 0
    43
      _ci/pipeline.yml
  6. 0
    10
      _ci/verify.yml

+ 36
- 0
.drone.yml View File

@@ -0,0 +1,36 @@
kind: pipeline
name: default

steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: xperimental/hugo:0.58.3
commands:
- hugo
- name: publish
image: alpine
volumes:
- name: output
path: /output
commands:
- apk add rsync
- rsync -av --del ./public/ /output/
- chown -R 33:33 /output
when:
branch:
- master
- name: verify
image: xperimental/linky:0.3.0
commands:
- linky https://www.hacknology.de
when:
branch:
- master

volumes:
- name: output
host:
path: /var/www/html

+ 0
- 1
_ci/.gitignore View File

@@ -1 +0,0 @@
credentials.yml

+ 0
- 6
_ci/build.sh View File

@@ -1,6 +0,0 @@
#!/bin/env sh

set -e -u -x

hugo -s ./source/
cp -r ./source/public/* ./website/

+ 0
- 12
_ci/build.yml View File

@@ -1,12 +0,0 @@
platform: linux
image_resource:
type: docker-image
source:
repository: xperimental/hugo
tag: 0.58.3
inputs:
- name: source
outputs:
- name: website
run:
path: source/_ci/build.sh

+ 0
- 43
_ci/pipeline.yml View File

@@ -1,43 +0,0 @@
resource_types:
- name: ftp
type: docker-image
source:
repository: xperimental/simple-ftp-resource
tag: 0.0.2

resources:
- name: repo
type: git
source:
uri: https://git.hacknology.de/hacknology/website.git
branch: master
- name: server
type: ftp
source:
host: ftp.hacknology.de:21
user: {{ftp-user}}
password: {{ftp-password}}
tls: true

jobs:
- name: build
plan:
- get: source
resource: repo
trigger: true
- task: build
file: source/_ci/build.yml
- put: website
resource: server
params:
local: website/
remote: /
- name: verify
plan:
- get: source
resource: repo
trigger: true
passed:
- build
- task: verify
file: source/_ci/verify.yml

+ 0
- 10
_ci/verify.yml View File

@@ -1,10 +0,0 @@
platform: linux
image_resource:
type: docker-image
source:
repository: xperimental/linky
tag: 0.3.0
run:
path: /bin/linky
args:
- https://www.hacknology.de

Loading…
Cancel
Save