Remove drone

This commit is contained in:
Simon Bruder 2021-11-30 18:51:24 +01:00
parent 106eae7b09
commit 418d55ee17
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 0 additions and 98 deletions

View file

@ -1,89 +0,0 @@
kind: pipeline
name: default
steps:
- name: cache-restore
image: plugins/s3-cache
settings:
pull: true
endpoint: https://s3.sbruder.de
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
restore: true
- name: build
image: alpine
commands:
- set -e
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
- apk add --no-cache git git-lfs jq py3-pip py3-virtualenv unzip wget zola
- pip3 install --no-cache-dir mutagen
- wget -qO - https://raw.githubusercontent.com/MestreLion/git-tools/master/git-restore-mtime | python3 -
- ./vendor.sh
- ./build.sh
- '[ "$DRONE_COMMIT_BRANCH" = "master" ] || zola build -u "https://${DRONE_COMMIT}--schulpodcast.netlify.app"'
- name: publish-rsync-prod
image: drillster/drone-rsync
settings:
hosts: [ "schulischer-schabernack.de" ]
user: deploy
key:
from_secret: deploy_key
source: public/
target: . # set by rrsync
args: [ "-v" ]
delete: true
when:
branch:
- master
- name: publish-netlify-prod
image: r.sbruder.de/drone-netlify
settings:
auth_token:
from_secret: netlify_auth_token
dir: public
prod: 1
when:
branch:
- master
- name: publish-netlify-preview
image: r.sbruder.de/drone-netlify
settings:
auth_token:
from_secret: netlify_auth_token
dir: public
when:
branch:
exclude:
- master
- name: cache-rebuild
image: plugins/s3-cache
settings:
pull: true
endpoint: https://s3.sbruder.de
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
rebuild: true
mount:
- static/episodes
- name: cache-flush
image: plugins/s3-cache
settings:
pull: true
endpoint: https://s3.sbruder.de
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
flush: true
flush_age: 14

View file

@ -64,15 +64,6 @@
</aside> </aside>
</div> </div>
</div> </div>
<footer class="footer">
{%- if get_env(name="DRONE", default="") == "true" -%}
<a href="{{ get_env(name="DRONE_SYSTEM_PROTO") ~ "://" ~ get_env(name="DRONE_SYSTEM_HOSTNAME") ~ "/" ~ get_env(name="DRONE_REPO") ~ "/" ~ get_env(name="DRONE_BUILD_NUMBER") }}">Automatisch generiert</a>
aus Commit <a href="{{ get_env(name="DRONE_COMMIT_LINK") }}">{{ get_env(name="DRONE_COMMIT") | truncate(length=7, end="") }}</a>
{%- else %}
Manuell generiert
{%- endif %}
{{ now() | date(format="am %d.%m.%Y um %T") }}.
</footer>
</div> </div>
{% block scripts -%} {% block scripts -%}
<script src="{{ get_url(path="assets/main.js") | safe }}"></script> <script src="{{ get_url(path="assets/main.js") | safe }}"></script>