fix: correct URL
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is failing

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-10-14 16:21:56 +02:00
parent d6e3bae44c
commit 234e077501
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
11 changed files with 55 additions and 20 deletions

View file

@ -3,29 +3,51 @@ name: default
type: docker
steps:
- name: Get apt packages
- name: Create apt packages
image: "ubuntu:latest"
commands:
- env
- apt update
- apt install -y wget reprepro
- apt install -y git reprepro wget
- bash ./prepare-pages.sh
- mv repo/ /pkg
volumes:
- name: pkg
path: /pkg
- name: Push to Pages
image: plugins/gh-pages
settings:
netrc_machine: git.froth.zone
target_branch: pages
pages_directory: /pkg
username: sam
password:
from_secret: GITEA_PASSWORD
- 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: git@git.froth.zone:packages/awl.git
ssh_key:
from_secret: SSH_KEY
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: ssh://git@git.froth.zone:packages/awl.git
ssh_key:
from_secret: SSH_KEY
target_branch: pages
commit: true
commit_message: Update DB
depends_on:
- "Create apt packages"
volumes:
- name: pkg
temp: {}

1
.gitignore vendored
View file

@ -2,5 +2,4 @@
.dccache
*.deb
db/
repo/

View file

@ -1,3 +1,4 @@
Codename: awl
Components: main
Architectures: i386 amd64 armhf arm64
Architectures: i386 amd64 armhf arm64 source
Limit: 0

BIN
db/checksums.db Normal file

Binary file not shown.

BIN
db/contents.cache.db Normal file

Binary file not shown.

BIN
db/packagenames.db Normal file

Binary file not shown.

BIN
db/packages.db Normal file

Binary file not shown.

BIN
db/references.db Normal file

Binary file not shown.

BIN
db/release.caches.db Normal file

Binary file not shown.

4
db/version Normal file
View file

@ -0,0 +1,4 @@
5.3.0
3.3.0
bdb5.3.28
bdb5.3.0

View file

@ -1,6 +1,15 @@
#!/usr/bin/env bash
set -e
# drone
if [ -n "$DRONE_TAG" ]; then
TAG=$DRONE_TAG
fi
# woodpecker
if [ -n "$CI_COMMIT_TAG" ]; then
TAG=$CI_COMMIT_TAG
fi
if [ -z "$TAG" ]; then
echo "\$TAG not set, exiting"
exit 1
@ -8,13 +17,13 @@ fi
arches=("amd64" "386" "armv6" "arm64")
notag=$(sed 's/v//' <<<"$TAG")
notag=${TAG//v/}
for arch in "${arches[@]}"; do
# wget "http://localhost:8080/awl_${notag}_linux_${arch}.deb"
wget "https://git.froth.zone/sam/awl/releases/$TAG/download/awl_${notag}_linux_${arch}.deb"
wget "https://git.froth.zone/sam/awl/releases/download/$TAG/awl_${notag}_linux_${arch}.deb"
done
reprepro includedeb awl ./*.deb
mkdir -p repo
mv dists/ pool/ repo/