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 7af2039b0c
All checks were successful
continuous-integration/drone Build is passing
Try fixing the bad publish location
2023-04-29 18:23:38 +02:00

69 lines
1.7 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.2-1_amd64.deb && dpkg -i ./reprepro_5.4.2-1_amd64.deb
- rm ./reprepro_5.4.2-1_amd64.deb
- bash ./import-gpg.sh
- bash ./prepare-pages.sh
- git clone --depth 1 -b pages https://git.froth.zone/packages/awl pkg
# delete stuff that either does not matter or will get overwritten
- rm -rf pkg/.git
# overwrite anything that already exists, and merge the folders that don't
- yes | cp -rlPaf repo/* pkg/apt
# Remove (this isn't needed but makes me feel better)
- rm -rf repo/
- mv pkg/apt /pkg/apt
- rm -rf pkg/
environment:
TAG: ${TAG}
SIGNING_KEY:
from_secret: SIGNING_KEY
volumes:
- name: pkg
path: /pkg
- name: Push to Pages
image: plugins/gh-pages
settings:
remote_url:
from_secret: URL
target_branch: pages
copy_contents: true
pages_directory: /pkg
username: sam
password:
from_secret: PASS
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
path: /drone/src
remote:
from_secret: URL
commit: true
tag: true
followtags: true
commit_message: Update DB
depends_on:
- "Push to Pages"
volumes:
- name: pkg
temp: {}