Skip to content

Commit e680bdc

Browse files
authored
Merge pull request #97 from thelamer/master
updating endpoint to consume for versioning
2 parents 5913c66 + 1e6ce7d commit e680bdc

5 files changed

Lines changed: 8 additions & 5 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ RUN \
8989
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
9090
echo "**** set version tag ****" && \
9191
if [ -z ${NEXTCLOUD_RELEASE+x} ]; then \
92-
NEXTCLOUD_RELEASE=$(echo 15.0.7); \
92+
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
93+
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
9394
fi && \
9495
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
9596
echo "**** cleanup ****" && \

Dockerfile.aarch64

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ RUN \
8989
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
9090
echo "**** set version tag ****" && \
9191
if [ -z ${NEXTCLOUD_RELEASE+x} ]; then \
92-
NEXTCLOUD_RELEASE=$(echo 15.0.7); \
92+
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
93+
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
9394
fi && \
9495
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
9596
echo "**** cleanup ****" && \

Dockerfile.armhf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ RUN \
8989
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
9090
echo "**** set version tag ****" && \
9191
if [ -z ${NEXTCLOUD_RELEASE+x} ]; then \
92-
NEXTCLOUD_RELEASE=$(echo 15.0.7); \
92+
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
93+
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
9394
fi && \
9495
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
9596
echo "**** cleanup ****" && \

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pipeline {
9696
steps{
9797
script{
9898
env.EXT_RELEASE = sh(
99-
script: ''' echo 15.0.7 ''',
99+
script: ''' curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php | awk -F\\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}' ''',
100100
returnStdout: true).trim()
101101
env.RELEASE_LINK = 'custom_command'
102102
}

jenkins-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# jenkins variables
44
project_name: docker-nextcloud
55
external_type: na
6-
custom_version_command: 'echo 15.0.7'
6+
custom_version_command: "curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php | awk -F\\\\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'"
77
release_type: stable
88
release_tag: latest
99
ls_branch: master

0 commit comments

Comments
 (0)