Skip to content

Commit

Permalink
Merge pull request #34 from trustpilot/add-checksums
Browse files Browse the repository at this point in the history
Add checksums
  • Loading branch information
Audrius Karabanovas authored Jan 14, 2020
2 parents dc15006 + 2eaac3d commit 9df7534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: './.release/beat-exporter-*'
args: './.release/*'

docker:
name: Publish docker images
Expand Down
2 changes: 2 additions & 0 deletions create-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ VERSION=$(git describe --tags | cut -d '-' -f1 | cut -d 'v' -f2)
RELEASE_FILES=LICENSE

mkdir -p $RELEASE_DIR
touch "${RELEASE_DIR}/sha256sums.txt"

for ARTIFACT in $(ls .build); do
ARTIFACT_NAME="beat-exporter-${VERSION}-${ARTIFACT}.tar.gz"
Expand All @@ -29,4 +30,5 @@ for ARTIFACT in $(ls .build); do
done

cd "${GITHUB_WORKSPACE}/.build/${ARTIFACT}" && tar -cvzf ${GITHUB_WORKSPACE}/${RELEASE_DIR}/${ARTIFACT_NAME} *
echo `cd ${GITHUB_WORKSPACE}/${RELEASE_DIR} && sha256sum ${ARTIFACT_NAME}` >> "${GITHUB_WORKSPACE}/${RELEASE_DIR}/sha256sums.txt"
done

0 comments on commit 9df7534

Please sign in to comment.