no tag in frontend
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sergio Álvarez 2022-01-12 13:02:53 +01:00
parent d716cb6aaf
commit 2cf1718606
No known key found for this signature in database
GPG Key ID: 622780889DFDBDA5
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ steps:
- name: frontend - name: frontend
image: node:16.13.1-alpine image: node:16.13.1-alpine
commands: commands:
- cd frontend && npm install && REACT_APP_GIT_SHA="${DRONE_COMMIT_SHA:0:10}" REACT_APP_GIT_TAG="${DRONE_TAG}" npm run build - cd frontend && npm install && REACT_APP_GIT_SHA="${DRONE_COMMIT_SHA:0:10}" npm run build
volumes: volumes:
- name: cache - name: cache
path: /drone/src/frontend/node_modules path: /drone/src/frontend/node_modules

View File

@ -9,8 +9,9 @@ export default class Footer extends Component {
<small> <small>
Coded by <a href="https://twitter.com/xergio">Sergio Álvarez <BsTwitter /></a>{' '} Coded by <a href="https://twitter.com/xergio">Sergio Álvarez <BsTwitter /></a>{' '}
<span className="text-muted">¦</span>{' '} <span className="text-muted">¦</span>{' '}
Build <a href="https://sergio.am/code/xrg.es"><tt>{process.env.REACT_APP_GIT_SHA}</tt></a> Tag: <a href={'https://sergio.am/code/xrg.es/src/tag/'+process.env.REACT_APP_GIT_TAG}>{process.env.REACT_APP_GIT_TAG}</a>.</small> Build <a href="https://sergio.am/code/xrg.es"><tt>{process.env.REACT_APP_GIT_SHA}</tt></a>.</small>
</footer> </footer>
) )
} }
} }
//Tag: <a href={'https://sergio.am/code/xrg.es/src/tag/'+process.env.REACT_APP_GIT_TAG}>{process.env.REACT_APP_GIT_TAG}</a>