From 7bf7d05b0c336a7fb74c2a6d60b0a68e1a649670 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 11 Mar 2020 20:00:47 +0100 Subject: [PATCH] use chromedriver version as an ENV in Dockerfile * also updated notification message format --- .drone.yml | 2 +- Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index b0f9f6b..eb38c48 100644 --- a/.drone.yml +++ b/.drone.yml @@ -46,7 +46,7 @@ steps: pull: always image: appleboy/drone-discord:1.2.4 settings: - message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\ncommit `${DRONE_COMMIT_SHA:0:7}` by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n{{ build.link }}\n {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\ncommit `${DRONE_COMMIT_SHA:0:7}` by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n{{ build.link }}\n {{/success}}\n" + message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\ncommit `${DRONE_COMMIT_SHA:0:7}` by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n{{ build.link }}\n {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\ncommit `${DRONE_COMMIT_SHA:0:7}` by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n{{ build.link }}\n {{/success}}\n\n" webhook_id: from_secret: discord_webhook_id webhook_token: diff --git a/Dockerfile b/Dockerfile index 31e4471..6f40294 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM archlinux/base +ENV CHROMEDRIVER_VERSION="80.0.3987.106" + RUN pacman -Syu --noconfirm --needed python python-pip wget tar chromium \ && pacman -Scc \ && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \ && pip install robotframework robotframework-seleniumlibrary \ - && wget -qO- https://chromedriver.storage.googleapis.com/80.0.3987.106/chromedriver_linux64.zip | bsdtar -xvf - \ + && wget -qO- https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip | bsdtar -xvf - \ && chmod -v +x chromedriver \ && mkdir -pv /usr/local/bin \ && mv -v chromedriver /usr/local/bin/