diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 238e1df264fc7711102dca040a46ae02b8e557a2..96c25f232ae30b373608813d10642a0bca28bca8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: durcheinander/pack-build:1.0.0 +image: durcheinander/pack-build:1.0.1 stages: - build @@ -154,6 +154,5 @@ send-release-notes-to-group: - mudslide_cache script: - mkdir -p mudslide_cache - # || true is necessary because it fails on non-tty, logging in still works though - - mudslide login || true + - mudslide login - mudslide send $WHATSAPP_RELEASE_NOTIFY_RECIPIENT "$(cat RELEASE_NOTES.md)" diff --git a/pack-build/Dockerfile b/pack-build/Dockerfile index 9b6c82ad814440d04eac723e260dd5f394bb7ff8..e02480354f573cedc21fc5ba1224428f8b31412f 100644 --- a/pack-build/Dockerfile +++ b/pack-build/Dockerfile @@ -14,3 +14,11 @@ curl RUN npm install --global \ yarn \ mudslide + +# remove the code that waits for a key after login: +# 137 process.stdin.setRawMode(true); +# 138 return new Promise(resolve => process.stdin.once('data', () => { +# 139 process.stdin.setRawMode(false); +# 140 resolve(undefined); +# 141 })); +RUN sed -i '137,141d' /usr/local/lib/node_modules/mudslide/dist/whatsapp.js