north-star / commit
echo commit during build
.gitlab-ci.yml | 1 + src/index.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1596d2c..c41dc8a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,5 +12,6 @@ create-pages: before_script: [] script: - mkdir -p public + - echo "Building North Star from commit ${CI_COMMIT_SHORT_SHA}..." - cp ./src/* ./public/ -R - echo "export const GIT_COMMIT='${CI_COMMIT_SHORT_SHA}';" > public/commit.js diff --git a/src/index.html b/src/index.html index e33c27a..f8ba3ec 100644 --- a/src/index.html +++ b/src/index.html @@ -24,12 +24,14 @@ </head> <body> - <p class="app-title"><a href="https://gitlab.com/PavelSafronov/north-star">North Star</a></p> + <p class="app-title"><a href="https://gitlab.com/PavelSafronov/north-star" target="_blank" + rel="noopener noreferrer">North Star</a></p> <p id="room-current" class="room-current"></p> <p class="room-links"> <a id="invite-room-link" href="#">Invite to Room</a> <span aria-hidden="true">·</span> - <a id="create-room-link" href="https://pavelsafronov.gitlab.io/north-star/">Create New Room</a> + <a id="create-room-link" href="https://pavelsafronov.gitlab.io/north-star/" target="_blank" + rel="noopener noreferrer">Create New Room</a> </p> <form id="name-form" class="name-form" autocomplete="off"> <input id="self-name-input" name="selfName" type="text" maxlength="32" enterkeyhint="done" />