From 155a56987451e3e7819d5aa0c985059732e47049 Mon Sep 17 00:00:00 2001 From: Viktor Pulyak Date: Tue, 21 Apr 2020 22:38:47 +0300 Subject: [PATCH] [BRG-549] Update gitlab ci process --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7dd2a720..f1ffcf65 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,6 +54,8 @@ publish: stage: publish dependencies: - build + before_script: + - apt-get update -y && apt-get -y --allow-unauthenticated install curl jq script: - ACCESS_TOKEN=$(curl "https://accounts.google.com/o/oauth2/token" -d "client_id=${CHROME_CLIENT_ID}&client_secret=${CHROME_CLIENT_SECRET}&refresh_token=${CHROME_REFRESH_TOKEN}&grant_type=refresh_token&redirect_uri=urn:ietf:wg:oauth:2.0:oob" | jq -r .access_token) - 'curl -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "x-goog-api-version: 2" -X PUT -T ./build/zip/echo_bridge.zip -v "https://www.googleapis.com/upload/chromewebstore/v1.1/items/${CHROME_APP_ID}"'