Browse Source

no tag in frontend

main
Sergio Álvarez 4 months ago
parent
commit
2cf1718606
Signed by: salvarez
GPG Key ID: 622780889DFDBDA5
  1. 2
      .drone.yml
  2. 3
      frontend/src/Footer.js

2
.drone.yml

@ -11,7 +11,7 @@ steps: @@ -11,7 +11,7 @@ steps:
- name: frontend
image: node:16.13.1-alpine
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:
- name: cache
path: /drone/src/frontend/node_modules

3
frontend/src/Footer.js

@ -9,8 +9,9 @@ export default class Footer extends Component { @@ -9,8 +9,9 @@ export default class Footer extends Component {
<small>
Coded by <a href="https://twitter.com/xergio">Sergio Álvarez <BsTwitter /></a>{' '}
<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>
)
}
}
//Tag: <a href={'https://sergio.am/code/xrg.es/src/tag/'+process.env.REACT_APP_GIT_TAG}>{process.env.REACT_APP_GIT_TAG}</a>
Loading…
Cancel
Save