Skip to content

Commit

Permalink
fix release id url
Browse files Browse the repository at this point in the history
  • Loading branch information
hydazz committed Jan 21, 2023
1 parent 0e3d927 commit e8c71d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pipeline {
echo 'Upload files to Github release'
sh '''#!/bin/bash
sha512sum glibc-bin-${EXT_RELEASE}-x86_64.tar.gz > glibc-bin-${EXT_RELEASE}-x86_64.tar.gz.sha512sum
RELEASE_ID=$(curl -s "https://api.github.com/repos/${IG_USER}/${IG_REPO}/releases/tags/${EXT_RELEASE}" | jq '.id')
RELEASE_ID=$(curl -s "https://api.github.com/repos/${IG_USER}/${IG_REPO}/releases/tags/${META_TAG}" | jq '.id')
for file in "tar.gz" "tar.gz.sha512sum"; do
UPLOAD_FILE=glibc-bin-${EXT_RELEASE}-x86_64.${file}
curl -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/gzip" --data-binary "@${UPLOAD_FILE}" "https://uploads.github.com/repos/${IG_USER}/${IG_REPO}/releases/${RELEASE_ID}/assets?name=${UPLOAD_FILE}"
Expand All @@ -102,7 +102,7 @@ pipeline {
rm ${DELETEFILE}
done
docker rmi \
{IMAGE}:amd64-${META_TAG} || :
${IMAGE}:amd64-${META_TAG} || :
'''
}
}
Expand All @@ -123,7 +123,7 @@ pipeline {
echo 'Upload files to Github release'
sh '''#!/bin/bash
sha512sum glibc-bin-${EXT_RELEASE}-aarch64.tar.gz > glibc-bin-${EXT_RELEASE}-aarch64.tar.gz.sha512sum
RELEASE_ID=$(curl -s "https://api.github.com/repos/${IG_USER}/${IG_REPO}/releases/tags/${EXT_RELEASE}" | jq '.id')
RELEASE_ID=$(curl -s "https://api.github.com/repos/${IG_USER}/${IG_REPO}/releases/tags/${META_TAG}" | jq '.id')
for file in "tar.gz" "tar.gz.sha512sum"; do
UPLOAD_FILE=glibc-bin-${EXT_RELEASE}-aarch64.${file}
curl -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/gzip" --data-binary "@${UPLOAD_FILE}" "https://uploads.github.com/repos/${IG_USER}/${IG_REPO}/releases/${RELEASE_ID}/assets?name=${UPLOAD_FILE}"
Expand All @@ -148,12 +148,12 @@ pipeline {
script{
if (currentBuild.currentResult == "SUCCESS"){
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins.io/JENKINS/attachments/2916393/57409617.png","embeds": [{"color": 1681177,\
"description": "**${IG_REPO} Build '${BUILD_NUMBER}' Results**\\n**Status:** Success\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\
"description": "**'${IG_REPO}'**\\n**Build** '${BUILD_NUMBER}'\\n**Status:** Success\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
}
else {
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins.io/JENKINS/attachments/2916393/57409617.png","embeds": [{"color": 16711680,\
"description": "**${IG_REPO} Build '${BUILD_NUMBER}' Results**\\n**Status:** failure\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\
"description": "**'${IG_REPO}'**\\n**Build** '${BUILD_NUMBER}'\\n**Status:** Failure\\n**Job:** '${RUN_DISPLAY_URL}'\\n"}],\
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
}
}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

This is a modified version of [sgerrand/docker-glibc-builder](https://github.com/sgerrand/docker-glibc-builder) that automatically builds a glibc binary package for `x86_64` AND `aarch64` for use in alpine docker images.

Compiled packages are published in a [release](https://github.com/imagegenius/docker-glibc-builder/releases) - available for anyone to use.

These binaries are then used by [imagegenius/aports](https://github.com/imagegenius/aports) to build glibc packages for `x86_64` and `aarch64` and are available in a [docker baseimage](https://github.com/imagegenius/docker-baseimage-alpine-glibc) and as alpine packages in the [imagegenius repo](https://packages.imagegenius.io/).

0 comments on commit e8c71d8

Please sign in to comment.