Write build version to file on deploy (#24)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-19 10:28:27 -05:00
parent 07664e29cd
commit e1c666e3ad
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -55,6 +55,7 @@ steps:
- cd www - cd www
- sed -i 's/<base href="\\/" \\/>/<base href="\\/i\\/"\\/>/' index.html - sed -i 's/<base href="\\/" \\/>/<base href="\\/i\\/"\\/>/' index.html
- sed -i 's/Ionic App/Noded/' index.html - sed -i 's/Ionic App/Noded/' index.html
- echo -n '${DRONE_TAG}-staging' | sudo tee version.html
when: when:
event: promote event: promote
target: staging target: staging
@ -92,6 +93,7 @@ steps:
- cd www - cd www
- sed -i 's/<base href="\\/" \\/>/<base href="\\/i\\/"\\/>/' index.html - sed -i 's/<base href="\\/" \\/>/<base href="\\/i\\/"\\/>/' index.html
- sed -i 's/Ionic App/Noded/' index.html - sed -i 's/Ionic App/Noded/' index.html
- echo -n '${DRONE_TAG}-prod' | sudo tee version.html
when: when:
event: promote event: promote
target: production target: production