-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ pipeline { | |
CI_PORT='80' | ||
CI_SSL='false' | ||
CI_DELAY='120' | ||
CI_DOCKERENV='TZ=US/Pacific' | ||
CI_DOCKERENV='' | ||
CI_AUTH='' | ||
CI_WEBPATH='' | ||
} | ||
|
@@ -129,21 +129,21 @@ pipeline { | |
/* ######################## | ||
External Release Tagging | ||
######################## */ | ||
// If this is a github commit trigger determine the current commit at head | ||
stage("Set ENV github_commit"){ | ||
// If this is a stable github release use the latest endpoint from github to determine the ext tag | ||
stage("Set ENV github_stable"){ | ||
steps{ | ||
script{ | ||
env.EXT_RELEASE = sh( | ||
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq -r '. | .sha' | cut -c1-8 ''', | ||
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''', | ||
returnStdout: true).trim() | ||
} | ||
} | ||
} | ||
// If this is a github commit trigger Set the external release link | ||
stage("Set ENV commit_link"){ | ||
// If this is a stable or devel github release generate the link for the build message | ||
stage("Set ENV github_link"){ | ||
steps{ | ||
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 | ||
} | ||
} | ||
} | ||
|
@@ -585,7 +585,7 @@ pipeline { | |
--label \"org.opencontainers.image.title=Mastodon\" \ | ||
--label \"org.opencontainers.image.description=[Mastodon](https://github.com/mastodon/mastodon/) is a free, open-source social network server based on ActivityPub where users can follow friends and discover new ones.. \" \ | ||
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \ | ||
--provenance=false --sbom=false --builder=container --load \ | ||
--provenance=false --sbom=false --builder=default --load \ | ||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." | ||
sh '''#! /bin/bash | ||
set -e | ||
|
@@ -649,7 +649,7 @@ pipeline { | |
--label \"org.opencontainers.image.title=Mastodon\" \ | ||
--label \"org.opencontainers.image.description=[Mastodon](https://github.com/mastodon/mastodon/) is a free, open-source social network server based on ActivityPub where users can follow friends and discover new ones.. \" \ | ||
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \ | ||
--provenance=false --sbom=false --builder=container --load \ | ||
--provenance=false --sbom=false --builder=default --load \ | ||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." | ||
sh '''#! /bin/bash | ||
set -e | ||
|
@@ -706,7 +706,7 @@ pipeline { | |
--label \"org.opencontainers.image.title=Mastodon\" \ | ||
--label \"org.opencontainers.image.description=[Mastodon](https://github.com/mastodon/mastodon/) is a free, open-source social network server based on ActivityPub where users can follow friends and discover new ones.. \" \ | ||
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \ | ||
--provenance=false --sbom=false --builder=container --load \ | ||
--provenance=false --sbom=false --builder=default --load \ | ||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." | ||
sh '''#! /bin/bash | ||
set -e | ||
|
@@ -974,7 +974,7 @@ pipeline { | |
"tagger": {"name": "LinuxServer-CI","email": "[email protected]","date": "'${GITHUB_DATE}'"}}' ''' | ||
echo "Pushing New release for Tag" | ||
sh '''#! /bin/bash | ||
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_RELEASE_CLEAN} | jq '.commit.message' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json | ||
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq '. |.body' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json | ||
echo '{"tag_name":"'${META_TAG}'",\ | ||
"target_commitish": "glitch",\ | ||
"name": "'${META_TAG}'",\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters