This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
awl/.drone.yml
Sam Therapy 90f78c41f1
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
add newer reprepro
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-14 20:51:29 +02:00

52 lines
1.2 KiB
YAML

kind: pipeline
name: default
type: docker
steps:
- name: Create apt packages
image: "ubuntu:latest"
commands:
- apt update
- apt install -y git reprepro wget
# Need >= 5.4.0, which isn't in the repos
- wget http://ftp.us.debian.org/debian/pool/main/r/reprepro/reprepro_5.4.1-1_amd64.deb && dpkg -i ./reprepro_5.4.1-1_amd64.deb
- bash ./prepare-pages.sh
- mkdir -p /pkg/repo
- mv repo /pkg/repo/apt
- mv db /db
environment:
TAG: ${TAG}
volumes:
- name: pkg
path: /pkg
- name: Push to Pages
image: plugins/gh-pages
settings:
remote_url:
from_secret: URL
target_branch: pages
pages_directory: /pkg/repo
user_name: Sam Therapy
user_email: sam@samtherapy.net
volumes:
- name: pkg
path: /pkg
depends_on:
- "Create apt packages"
- name: Update the DB
image: appleboy/drone-git-push
settings:
branch: master
remote:
from_secret: URL
target_branch: pages
commit: true
commit_message: Update DB
depends_on:
- "Create apt packages"
volumes:
- name: pkg
temp: {}