use chromedriver version as an ENV in Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

* also updated notification message format
This commit is contained in:
surtur 2020-03-11 20:00:47 +01:00
parent 711397d6a1
commit 7bf7d05b0c
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 4 additions and 2 deletions

@ -46,7 +46,7 @@ steps:
pull: always pull: always
image: appleboy/drone-discord:1.2.4 image: appleboy/drone-discord:1.2.4
settings: 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: webhook_id:
from_secret: discord_webhook_id from_secret: discord_webhook_id
webhook_token: webhook_token:

@ -1,10 +1,12 @@
FROM archlinux/base FROM archlinux/base
ENV CHROMEDRIVER_VERSION="80.0.3987.106"
RUN pacman -Syu --noconfirm --needed python python-pip wget tar chromium \ RUN pacman -Syu --noconfirm --needed python python-pip wget tar chromium \
&& pacman -Scc \ && pacman -Scc \
&& rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \ && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
&& pip install robotframework robotframework-seleniumlibrary \ && 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 \ && chmod -v +x chromedriver \
&& mkdir -pv /usr/local/bin \ && mkdir -pv /usr/local/bin \
&& mv -v chromedriver /usr/local/bin/ && mv -v chromedriver /usr/local/bin/