Update release variable, readme & jenkins
This commit is contained in:
parent
1cb1f09abc
commit
d58aaabd4d
@ -3,7 +3,7 @@ FROM lsiobase/ubuntu:bionic
|
|||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG CALIBRE_RELEASE
|
ARG CALIBREWEB_RELEASE
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="chbmb"
|
LABEL maintainer="chbmb"
|
||||||
|
|
||||||
@ -18,13 +18,13 @@ RUN \
|
|||||||
imagemagick \
|
imagemagick \
|
||||||
python-minimal && \
|
python-minimal && \
|
||||||
echo "**** install calibre-web ****" && \
|
echo "**** install calibre-web ****" && \
|
||||||
if [ -z ${CALIBRE_RELEASE+x} ]; then \
|
if [ -z ${CALIBREWEB_RELEASE+x} ]; then \
|
||||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \
|
CALIBREWEB_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
fi && \
|
fi && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/calibre-web.tar.gz -L \
|
/tmp/calibre-web.tar.gz -L \
|
||||||
https://github.com/janeczku/calibre-web/archive/${CALIBRE_RELEASE}.tar.gz && \
|
https://github.com/janeczku/calibre-web/archive/${CALIBREWEB_RELEASE}.tar.gz && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/app/calibre-web && \
|
/app/calibre-web && \
|
||||||
tar xf \
|
tar xf \
|
||||||
|
@ -3,7 +3,7 @@ FROM lsiobase/ubuntu:arm64v8-bionic
|
|||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG CALIBRE_RELEASE
|
ARG CALIBREWEB_RELEASE
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="chbmb"
|
LABEL maintainer="chbmb"
|
||||||
|
|
||||||
@ -18,13 +18,13 @@ RUN \
|
|||||||
imagemagick \
|
imagemagick \
|
||||||
python-minimal && \
|
python-minimal && \
|
||||||
echo "**** install calibre-web ****" && \
|
echo "**** install calibre-web ****" && \
|
||||||
if [ -z ${CALIBRE_RELEASE+x} ]; then \
|
if [ -z ${CALIBREWEB_RELEASE+x} ]; then \
|
||||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \
|
CALIBREWEB_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
fi && \
|
fi && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/calibre-web.tar.gz -L \
|
/tmp/calibre-web.tar.gz -L \
|
||||||
https://github.com/janeczku/calibre-web/archive/${CALIBRE_RELEASE}.tar.gz && \
|
https://github.com/janeczku/calibre-web/archive/${CALIBREWEB_RELEASE}.tar.gz && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/app/calibre-web && \
|
/app/calibre-web && \
|
||||||
tar xf \
|
tar xf \
|
||||||
|
@ -3,7 +3,7 @@ FROM lsiobase/ubuntu:arm32v7-bionic
|
|||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG CALIBRE_RELEASE
|
ARG CALIBREWEB_RELEASE
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="chbmb"
|
LABEL maintainer="chbmb"
|
||||||
|
|
||||||
@ -18,13 +18,13 @@ RUN \
|
|||||||
imagemagick \
|
imagemagick \
|
||||||
python-minimal && \
|
python-minimal && \
|
||||||
echo "**** install calibre-web ****" && \
|
echo "**** install calibre-web ****" && \
|
||||||
if [ -z ${CALIBRE_RELEASE+x} ]; then \
|
if [ -z ${CALIBREWEB_RELEASE+x} ]; then \
|
||||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \
|
CALIBREWEB_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
fi && \
|
fi && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/calibre-web.tar.gz -L \
|
/tmp/calibre-web.tar.gz -L \
|
||||||
https://github.com/janeczku/calibre-web/archive/${CALIBRE_RELEASE}.tar.gz && \
|
https://github.com/janeczku/calibre-web/archive/${CALIBREWEB_RELEASE}.tar.gz && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/app/calibre-web && \
|
/app/calibre-web && \
|
||||||
tar xf \
|
tar xf \
|
||||||
|
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -13,14 +13,14 @@ pipeline {
|
|||||||
EXT_GIT_BRANCH = 'master'
|
EXT_GIT_BRANCH = 'master'
|
||||||
EXT_USER = 'janeczku'
|
EXT_USER = 'janeczku'
|
||||||
EXT_REPO = 'calibre-web'
|
EXT_REPO = 'calibre-web'
|
||||||
BUILD_VERSION_ARG = 'CALIBRE_COMMIT'
|
BUILD_VERSION_ARG = 'CALIBREWEB_RELEASE'
|
||||||
LS_USER = 'linuxserver'
|
LS_USER = 'linuxserver'
|
||||||
LS_REPO = 'docker-calibre-web'
|
LS_REPO = 'docker-calibre-web'
|
||||||
CONTAINER_NAME = 'calibre-web'
|
CONTAINER_NAME = 'calibre-web'
|
||||||
DOCKERHUB_IMAGE = 'linuxserver/calibre-web'
|
DOCKERHUB_IMAGE = 'linuxserver/calibre-web'
|
||||||
DEV_DOCKERHUB_IMAGE = 'lsiodev/calibre-web'
|
DEV_DOCKERHUB_IMAGE = 'lsiodev/calibre-web'
|
||||||
PR_DOCKERHUB_IMAGE = 'lspipepr/calibre-web'
|
PR_DOCKERHUB_IMAGE = 'lspipepr/calibre-web'
|
||||||
DIST_IMAGE = 'alpine'
|
DIST_IMAGE = 'ubuntu'
|
||||||
MULTIARCH='true'
|
MULTIARCH='true'
|
||||||
CI='true'
|
CI='true'
|
||||||
CI_WEB='true'
|
CI_WEB='true'
|
||||||
@ -102,21 +102,21 @@ pipeline {
|
|||||||
/* ########################
|
/* ########################
|
||||||
External Release Tagging
|
External Release Tagging
|
||||||
######################## */
|
######################## */
|
||||||
// If this is a github commit trigger determine the current commit at head
|
// If this is a stable github release use the latest endpoint from github to determine the ext tag
|
||||||
stage("Set ENV github_commit"){
|
stage("Set ENV github_stable"){
|
||||||
steps{
|
steps{
|
||||||
script{
|
script{
|
||||||
env.EXT_RELEASE = sh(
|
env.EXT_RELEASE = sh(
|
||||||
script: '''curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq -r '. | .sha' | cut -c1-8 ''',
|
script: '''curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If this is a github commit trigger Set the external release link
|
// If this is a stable or devel github release generate the link for the build message
|
||||||
stage("Set ENV commit_link"){
|
stage("Set ENV github_link"){
|
||||||
steps{
|
steps{
|
||||||
script{
|
script{
|
||||||
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/commit/' + env.EXT_RELEASE
|
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -604,7 +604,7 @@ pipeline {
|
|||||||
"tagger": {"name": "LinuxServer Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
"tagger": {"name": "LinuxServer Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
||||||
echo "Pushing New release for Tag"
|
echo "Pushing New release for Tag"
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq '. | .commit.message' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
|
curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq '. |.body' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
|
||||||
echo '{"tag_name":"'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
echo '{"tag_name":"'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
||||||
"target_commitish": "master",\
|
"target_commitish": "master",\
|
||||||
"name": "'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
"name": "'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
||||||
|
@ -199,6 +199,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **02.06.19:** - Rebase to Ubuntu Bionic & add Gdrive support.
|
||||||
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
||||||
* **23.02.19:** - Rebase to alpine 3.9, use repo version of imagemagick.
|
* **23.02.19:** - Rebase to alpine 3.9, use repo version of imagemagick.
|
||||||
* **11.02.19:** - Add pipeline logic and multi arch.
|
* **11.02.19:** - Add pipeline logic and multi arch.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# jenkins variables
|
# jenkins variables
|
||||||
project_name: docker-calibre-web
|
project_name: docker-calibre-web
|
||||||
external_type: github_commit
|
external_type: github_stable
|
||||||
release_type: stable
|
release_type: stable
|
||||||
release_tag: latest
|
release_tag: latest
|
||||||
ls_branch: master
|
ls_branch: master
|
||||||
@ -10,14 +10,14 @@ repo_vars:
|
|||||||
- EXT_GIT_BRANCH = 'master'
|
- EXT_GIT_BRANCH = 'master'
|
||||||
- EXT_USER = 'janeczku'
|
- EXT_USER = 'janeczku'
|
||||||
- EXT_REPO = 'calibre-web'
|
- EXT_REPO = 'calibre-web'
|
||||||
- BUILD_VERSION_ARG = 'CALIBRE_COMMIT'
|
- BUILD_VERSION_ARG = 'CALIBREWEB_RELEASE'
|
||||||
- LS_USER = 'linuxserver'
|
- LS_USER = 'linuxserver'
|
||||||
- LS_REPO = 'docker-calibre-web'
|
- LS_REPO = 'docker-calibre-web'
|
||||||
- CONTAINER_NAME = 'calibre-web'
|
- CONTAINER_NAME = 'calibre-web'
|
||||||
- DOCKERHUB_IMAGE = 'linuxserver/calibre-web'
|
- DOCKERHUB_IMAGE = 'linuxserver/calibre-web'
|
||||||
- DEV_DOCKERHUB_IMAGE = 'lsiodev/calibre-web'
|
- DEV_DOCKERHUB_IMAGE = 'lsiodev/calibre-web'
|
||||||
- PR_DOCKERHUB_IMAGE = 'lspipepr/calibre-web'
|
- PR_DOCKERHUB_IMAGE = 'lspipepr/calibre-web'
|
||||||
- DIST_IMAGE = 'alpine'
|
- DIST_IMAGE = 'ubuntu'
|
||||||
- MULTIARCH='true'
|
- MULTIARCH='true'
|
||||||
- CI='true'
|
- CI='true'
|
||||||
- CI_WEB='true'
|
- CI_WEB='true'
|
||||||
|
@ -69,6 +69,7 @@ app_setup_block: |
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "02.06.19:", desc: "Rebase to Ubuntu Bionic & add Gdrive support." }
|
||||||
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||||
- { date: "23.02.19:", desc: "Rebase to alpine 3.9, use repo version of imagemagick." }
|
- { date: "23.02.19:", desc: "Rebase to alpine 3.9, use repo version of imagemagick." }
|
||||||
- { date: "11.02.19:", desc: "Add pipeline logic and multi arch." }
|
- { date: "11.02.19:", desc: "Add pipeline logic and multi arch." }
|
||||||
|
Loading…
Reference in New Issue
Block a user