Skip to content

Commit

Permalink
adding versions
Browse files Browse the repository at this point in the history
This shows the current version of the build
  • Loading branch information
ineiti committed Mar 8, 2024
1 parent cffd74b commit 53fcdca
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set env
run: |
echo "REACT_APP_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "REACT_APP_BUILD=$(git describe --tags)" >> $GITHUB_ENV
echo "REACT_APP_BUILD_TIME=$(date)" >> $GITHUB_ENV
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -34,6 +39,10 @@ jobs:
context: .
file: Dockerfiles/Dockerfile.frontend
platforms: linux/amd64
build-args: |
REACT_APP_VERSION=$REACT_APP_VERSION
REACT_APP_BUILD
REACT_APP_BUILD_TIME
push: true
tags: ghcr.io/c4dt/d-voting-frontend:${{ env.DockerTag }}
- name: Build Backend
Expand Down
4 changes: 4 additions & 0 deletions scripts/local_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export DB_PATH="$(pwd)/nodes/llmdb"
# Logging in without Gaspar and REACT_APP_SCIPER_ADMIN
export REACT_APP_DEV_LOGIN="true"
export REACT_APP_SCIPER_ADMIN=100100
export REACT_APP_VERSION=$(git describe --tags --abbrev=0)
export REACT_APP_BUILD=$(git describe --tags)
export REACT_APP_BUILD_TIME=$(date)

# uncomment this to enable TLS to test gaspar
#export HTTPS=true
# Create random voter-IDs to allow easier testing
Expand Down
2 changes: 1 addition & 1 deletion web/frontend/src/language/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"enterHintLg2": "Geben Sie einen Hinweis auf Deutsch ein (optional)",
"hint": "Hinweis",
"invalidInput": "Bitte geben Sie eine Zahl zwischen 1 und {{max}} ein.",
"footerCopyright": "DEDIS LAB -",
"footerCopyright": "DEDIS LAB & C4DT -",
"footerUnknown": "?",
"footerVersion": "version:",
"footerBuild": "build:",
Expand Down
2 changes: 1 addition & 1 deletion web/frontend/src/language/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
"continue": "Continue",
"invalidInput": "Please enter a number between 1 and {{max}}.",
"hint": "Hint",
"footerCopyright": "DEDIS LAB -",
"footerCopyright": "DEDIS LAB & C4DT -",
"footerUnknown": "?",
"footerVersion": "version:",
"footerBuild": "build:",
Expand Down
2 changes: 1 addition & 1 deletion web/frontend/src/language/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"enterHintLg1": "Entrer une indication en Français (optionnel)",
"enterHintLg2": "Entrer une indication en Allemand (optionnel)",
"invalidInput": "Entrer s'il vous plaît un nombre entre 1 et {{max}}",
"footerCopyright": "DEDIS LAB -",
"footerCopyright": "DEDIS LAB & C4DT -",
"footerUnknown": "?",
"footerVersion": "version:",
"footerBuild": "build:",
Expand Down
2 changes: 1 addition & 1 deletion web/frontend/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Home: FC = () => {
{t('homeWhatsNew')}
</span>
<span className="inline-flex items-center text-sm font-medium text-[#ff0000] space-x-1">
<span>{t('homeJustShippedVersion')} 1.0.0</span>
<span>{t('homeJustShippedVersion')} 2.0.0-rc1</span>
<ChevronRightIcon className="h-5 w-5" aria-hidden="true" />
</span>
</a>
Expand Down

0 comments on commit 53fcdca

Please sign in to comment.