From 4f1f392f725ca926cb6ca7f96cefa8f2b0978031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Wed, 12 Jan 2022 09:34:23 +0100 Subject: [PATCH] frontend build hash --- .drone.yml | 2 +- frontend/src/Footer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index d0a98af..f02ec4c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: - name: frontend image: node:16.13.1-alpine commands: - - cd frontend && npm install && npm run build + - cd frontend && npm install && REACT_APP_GIT_SHA="${DRONE_BRANCH//\//-}-${DRONE_COMMIT_SHA:0:8}" npm run build volumes: - name: cache path: /drone/src/frontend/node_modules diff --git a/frontend/src/Footer.js b/frontend/src/Footer.js index 0324308..7c2fe69 100644 --- a/frontend/src/Footer.js +++ b/frontend/src/Footer.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; -import { BsFileEarmarkCodeFill, BsTwitter } from "react-icons/bs"; +import { BsTwitter } from "react-icons/bs"; export default class Footer extends Component { render() { @@ -9,7 +9,7 @@ export default class Footer extends Component { Coded by Sergio Álvarez {' '} ¦{' '} - + Build {process.env.REACT_APP_GIT_SHA} ) }