Compare commits
2 Commits
360fb47b05
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 69048954e4 | |||
| ff44db311d |
+18
-4
@@ -3,8 +3,10 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
ref:
|
||||||
- master
|
- refs/heads/master
|
||||||
|
- refs/tags/**
|
||||||
|
- refs/pull/**
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Unit Tests
|
# Unit Tests
|
||||||
@@ -19,14 +21,26 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
|
||||||
|
# Compute docker tag: git tag for tag builds, pr-<num> for PRs, dev for master
|
||||||
|
- name: compute tags
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- |
|
||||||
|
if [ "$DRONE_BUILD_EVENT" = "tag" ]; then
|
||||||
|
echo "$DRONE_TAG" > .tags
|
||||||
|
elif [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then
|
||||||
|
echo "pr-$DRONE_PULL_REQUEST" > .tags
|
||||||
|
else
|
||||||
|
echo "dev" > .tags
|
||||||
|
fi
|
||||||
|
- cat .tags
|
||||||
|
|
||||||
# Publish docker image
|
# Publish docker image
|
||||||
- name: publish docker
|
- name: publish docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: gitea.va.reichard.io/evan/antholume
|
repo: gitea.va.reichard.io/evan/antholume
|
||||||
registry: gitea.va.reichard.io
|
registry: gitea.va.reichard.io
|
||||||
tags:
|
|
||||||
- dev
|
|
||||||
custom_dns:
|
custom_dns:
|
||||||
- 8.8.8.8
|
- 8.8.8.8
|
||||||
username:
|
username:
|
||||||
|
|||||||
@@ -39,6 +39,14 @@ func (api *API) opdsEntry(c *gin.Context) {
|
|||||||
TypeLink: "application/opensearchdescription+xml",
|
TypeLink: "application/opensearchdescription+xml",
|
||||||
Href: "/api/opds/search.xml",
|
Href: "/api/opds/search.xml",
|
||||||
},
|
},
|
||||||
|
// Inline Search Template - Simpler OPDS clients (e.g. crosspoint-reader) don't resolve the
|
||||||
|
// OpenSearch descriptor and require the {searchTerms} template directly on a rel="search" link.
|
||||||
|
{
|
||||||
|
Title: "Search AnthoLume",
|
||||||
|
Rel: "search",
|
||||||
|
TypeLink: "application/atom+xml;profile=opds-catalog;kind=acquisition",
|
||||||
|
Href: "/api/opds/documents?search={searchTerms}",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
Entries: []opds.Entry{
|
Entries: []opds.Entry{
|
||||||
|
|||||||
Reference in New Issue
Block a user