Skip to content

Commit a3a4cfb

Browse files
authored
Merge pull request #9 from linuxserver/selkies
selkies branch
2 parents d486972 + 06398a6 commit a3a4cfb

File tree

10 files changed

+103
-130
lines changed

10 files changed

+103
-130
lines changed

.github/ISSUE_TEMPLATE/issue.bug.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ body:
5252
label: CPU architecture
5353
options:
5454
- x86-64
55-
- arm64
5655
validations:
5756
required: true
5857
- type: textarea

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ jobs:
2929
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
3030
echo "> External trigger running off of master branch. To disable this trigger, add \`krita_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
3131
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
32-
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
33-
&& awk '/^P:'"krita"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
34-
echo "Type is \`alpine_repo\`" >> $GITHUB_STEP_SUMMARY
32+
EXT_RELEASE=$(curl -sL https://download.kde.org/stable/krita/updates/Krita-Stable-x86_64.appimage.zsync | awk -F'(krita-|-x86_64)' '/URL: https/ {print $2}')
33+
echo "Type is \`custom_version_command\`" >> $GITHUB_STEP_SUMMARY
3534
if grep -q "^krita_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
3635
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3736
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY
@@ -107,13 +106,6 @@ jobs:
107106
if [ "${EXT_RELEASE_SANITIZED}" == "${IMAGE_VERSION}" ]; then
108107
echo "Sanitized version \`${EXT_RELEASE_SANITIZED}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
109108
exit 0
110-
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"krita"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
111-
echo "New version \`${EXT_RELEASE}\` found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
112-
FAILURE_REASON="New version ${EXT_RELEASE} for krita tag latest is detected, however not all arch repos are updated yet. Will try again later."
113-
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
114-
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
115-
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
116-
exit 0
117109
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-krita/job/master/lastBuild/api/json | jq -r '.building') == "true" ]; then
118110
echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY
119111
exit 0

Dockerfile

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-kasmvnc:alpine321
1+
FROM ghcr.io/linuxserver/baseimage-selkies:debianbookworm
22

33
# set version label
44
ARG BUILD_DATE
@@ -8,20 +8,28 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
88
LABEL maintainer="thelamer"
99

1010
# title
11-
ENV TITLE=Krita
11+
ENV TITLE=Krita
1212

1313
RUN \
1414
echo "**** add icon ****" && \
1515
curl -o \
16-
/kclient/public/icon.png \
16+
/usr/share/selkies/www/icon.png \
1717
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/krita-logo.png && \
1818
echo "**** install packages ****" && \
19-
if [ -z ${KRITA_VERSION+x} ]; then \
20-
KRITA_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
21-
&& awk '/^P:krita$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
22-
fi && \
23-
apk add --no-cache \
24-
krita==${KRITA_VERSION} && \
19+
DOWNLOAD_URL=$(curl -sL https://download.kde.org/stable/krita/updates/Krita-Stable-x86_64.appimage.zsync \
20+
| awk '/URL: https/ {print $2}') && \
21+
curl -o \
22+
/tmp/krita.app -L \
23+
"${DOWNLOAD_URL}" && \
24+
cd /tmp && \
25+
chmod +x krita.app && \
26+
./krita.app --appimage-extract && \
27+
mv \
28+
squashfs-root \
29+
/opt/krita && \
30+
ln -s \
31+
/opt/krita/AppRun \
32+
/usr/bin/krita && \
2533
echo "**** cleanup ****" && \
2634
rm -rf \
2735
/tmp/*

Dockerfile.aarch64

Lines changed: 0 additions & 35 deletions
This file was deleted.

Jenkinsfile

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ pipeline {
2626
DOCKERHUB_IMAGE = 'linuxserver/krita'
2727
DEV_DOCKERHUB_IMAGE = 'lsiodev/krita'
2828
PR_DOCKERHUB_IMAGE = 'lspipepr/krita'
29-
DIST_IMAGE = 'alpine'
30-
DIST_TAG = '3.21'
31-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.21/community/'
32-
DIST_REPO_PACKAGES = 'krita'
33-
MULTIARCH = 'true'
29+
DIST_IMAGE = 'ubuntu'
30+
MULTIARCH = 'false'
3431
CI = 'true'
3532
CI_WEB = 'true'
36-
CI_PORT = '3000'
37-
CI_SSL = 'false'
33+
CI_PORT = '3001'
34+
CI_SSL = 'true'
3835
CI_DELAY = '120'
3936
CI_DOCKERENV = 'TZ=US/Pacific'
4037
CI_AUTH = 'user:password'
@@ -145,15 +142,14 @@ pipeline {
145142
/* ########################
146143
External Release Tagging
147144
######################## */
148-
// If this is an alpine repo change for external version determine an md5 from the version string
149-
stage("Set tag Alpine Repo"){
145+
// If this is a custom command to determine version use that command
146+
stage("Set tag custom bash"){
150147
steps{
151148
script{
152149
env.EXT_RELEASE = sh(
153-
script: '''curl -sL "${DIST_REPO}x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
154-
&& awk '/^P:'"${DIST_REPO_PACKAGES}"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://' ''',
150+
script: ''' curl -sL https://download.kde.org/stable/krita/updates/Krita-Stable-x86_64.appimage.zsync | awk -F'(krita-|-x86_64)' '/URL: https/ {print $2}' ''',
155151
returnStdout: true).trim()
156-
env.RELEASE_LINK = 'alpine_repo'
152+
env.RELEASE_LINK = 'custom_command'
157153
}
158154
}
159155
}
@@ -992,7 +988,7 @@ pipeline {
992988
"tagger": {"name": "LinuxServer-CI","email": "[email protected]","date": "'${GITHUB_DATE}'"}}' '''
993989
echo "Pushing New release for Tag"
994990
sh '''#! /bin/bash
995-
echo "Updating external repo packages to ${EXT_RELEASE_CLEAN}" > releasebody.json
991+
echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json
996992
echo '{"tag_name":"'${META_TAG}'",\
997993
"target_commitish": "master",\
998994
"name": "'${META_TAG}'",\

0 commit comments

Comments
 (0)