Compare commits
No commits in common. "dc9531322abf215a4b1a656ea819b4eff0fcaaa9" and "8fa30c7a15c9f0aa466da0a26030a70e35d5e56b" have entirely different histories.
dc9531322a
...
8fa30c7a15
4 changed files with 13 additions and 6 deletions
2
Makefile
2
Makefile
|
@ -128,5 +128,7 @@ build-image:
|
|||
--no-cache \
|
||||
--platform linux/amd64 \
|
||||
--build-arg "VERSION=$$(version_ci)" \
|
||||
--tag docker.io/naskya/firefish \
|
||||
--tag registry.code.naskya.net/naskya/firefish \
|
||||
--tag "registry.code.naskya.net/naskya/firefish:$$(version_ci | cut -d':' -f2)" \
|
||||
.
|
||||
|
|
|
@ -43,11 +43,15 @@ contains() {
|
|||
}
|
||||
|
||||
version() {
|
||||
COMMIT_DATE=$(git show --no-patch --pretty='%cs' FETCH_HEAD | sed -e 's/-//g')
|
||||
printf '%s+neko' "${COMMIT_DATE}"
|
||||
UPSTREAM_VERSION=$(pnpm pkg get version | sed -e 's/"//g')
|
||||
COMMIT_DATE=$(git show --no-patch --pretty='%cs' FETCH_HEAD | sed -e 's/-//g' | cut -c 3-)
|
||||
COMMIT_HASH_INITIAL=$(printf '%s' "$(git rev-parse FETCH_HEAD)" | cut -c 1-2)
|
||||
printf '%s+neko:%s.%s' "${UPSTREAM_VERSION}" "${COMMIT_DATE}" "${COMMIT_HASH_INITIAL}"
|
||||
}
|
||||
|
||||
version_ci() {
|
||||
COMMIT_DATE=$(git show --no-patch --pretty='%cs' HEAD | sed -e 's/-//g')
|
||||
printf '%s+neko' "${COMMIT_DATE}"
|
||||
UPSTREAM_VERSION=$(grep '"version":' package.json | cut -d '"' -f 4)
|
||||
COMMIT_DATE=$(git show --no-patch --pretty='%cs' HEAD | sed -e 's/-//g' | cut -c 3-)
|
||||
COMMIT_HASH_INITIAL=$(printf '%s' "$(git rev-parse HEAD)" | cut -c 1-2)
|
||||
printf '%s+neko:%s.%s' "${UPSTREAM_VERSION}" "${COMMIT_DATE}" "${COMMIT_HASH_INITIAL}"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "firefish",
|
||||
"version": "neko",
|
||||
"version": "1.0.5-rc",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://code.naskya.net/naskya/firefish"
|
||||
|
|
|
@ -36,7 +36,7 @@ export default async (ctx: Router.RouterContext) => {
|
|||
const pinnedNotes = (
|
||||
await Promise.all(
|
||||
pinning.map((pinnedNote) =>
|
||||
Notes.findOneByOrFail({ id: pinnedNote.noteId }),
|
||||
this.notesRepository.findOneByOrFail({ id: pinnedNote.noteId }),
|
||||
),
|
||||
)
|
||||
).filter(
|
||||
|
|
Loading…
Reference in a new issue