Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 8a7e5ab

Browse files
committed
Gather the chrome.deb artifact to include it in the release
1 parent 0f5ad9b commit 8a7e5ab

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.6.0-p9
1+
3.6.0-p10

test/script_push

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,17 @@ github_release_from_NEXT_RELEASE() {
235235
rm NEXT_RELEASE.md
236236
mv temp.md NEXT_RELEASE.md
237237

238+
# We need to gather the chrome.deb artifact to include it in the release
239+
CHROME_VERSION=$(docker exec grid chrome_stable_version) \
240+
|| die "while trying to get CHROME_VERSION"
241+
242+
CHROME_DEB_FILE_NAME="google-chrome-stable_${CHROME_VERSION}_amd64"
243+
wget -nv --show-progress -O "${CHROME_DEB_FILE_NAME}.deb" \
244+
"https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
245+
246+
md5sum ${CHROME_DEB_FILE_NAME}.deb > ${CHROME_DEB_FILE_NAME}.md5
247+
shasum ${CHROME_DEB_FILE_NAME}.deb > ${CHROME_DEB_FILE_NAME}.sha
248+
238249
# If the release exists, delete it
239250
if hub release | grep -q "^${TRAVIS_TAG}\$"; then
240251
hub release delete "${TRAVIS_TAG}"
@@ -246,8 +257,9 @@ github_release_from_NEXT_RELEASE() {
246257
# https://github.com/github/hub/blob/master/commands/release.go#L59
247258
# TODO: Add real assents (.deb, ...)
248259
hub release create \
249-
-a "Dockerfile" \
250-
-a "capabilities.json" \
260+
-a "${CHROME_DEB_FILE_NAME}.md5" \
261+
-a "${CHROME_DEB_FILE_NAME}.sha" \
262+
-a "${CHROME_DEB_FILE_NAME}.deb" \
251263
-F "NEXT_RELEASE.md" \
252264
"${TRAVIS_TAG}"
253265
}

0 commit comments

Comments
 (0)