Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
01d2b161
Commit
01d2b161
authored
11 months ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
add to nuxt config and set at build time short sha
parent
a29fff3b
No related branches found
No related tags found
No related merge requests found
Pipeline
#127568
waiting for manual action with stages
in 1 minute and 53 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
components/Footer.vue
+0
-2
0 additions, 2 deletions
components/Footer.vue
docker-compose.yml
+1
-0
1 addition, 0 deletions
docker-compose.yml
nuxt.config.ts
+1
-0
1 addition, 0 deletions
nuxt.config.ts
with
3 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
0
View file @
01d2b161
...
@@ -423,6 +423,7 @@ sync-zotero:
...
@@ -423,6 +423,7 @@ sync-zotero:
--build-arg "BASE_URL=$BASE_URL"
--build-arg "BASE_URL=$BASE_URL"
--build-arg "MEILI_HOST=${MEILI_HOST}"
--build-arg "MEILI_HOST=${MEILI_HOST}"
--build-arg "MEILI_API_KEY=$MEILI_API_KEY"
--build-arg "MEILI_API_KEY=$MEILI_API_KEY"
--build-arg "SHORT_SHA=${$CI_COMMIT_SHORT_SHA}"
-f $DOCKERFILE $CONTEXT
-f $DOCKERFILE $CONTEXT
-
docker push "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_SHORT_SHA"
-
docker push "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_SHORT_SHA"
...
...
This diff is collapsed.
Click to expand it.
components/Footer.vue
+
0
−
2
View file @
01d2b161
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
const
runtimeConfig
=
useRuntimeConfig
();
const
runtimeConfig
=
useRuntimeConfig
();
</
script
>
</
script
>
<
template
>
<
template
>
<v-footer
app
text-center
d-flex
flex-column
>
<v-footer
app
text-center
d-flex
flex-column
>
test
<div
class=
"px-4 text-center w-100"
>
<div
class=
"px-4 text-center w-100"
>
<span>
{{
runtimeConfig
.
public
.
shortSha
}}
<span>
{{
runtimeConfig
.
public
.
shortSha
}}
</span>
</span>
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
0
View file @
01d2b161
...
@@ -12,6 +12,7 @@ services:
...
@@ -12,6 +12,7 @@ services:
container_name
:
nuxt
container_name
:
nuxt
environment
:
environment
:
HOST
:
0.0.0.0
HOST
:
0.0.0.0
NUXT_PUBLIC_SHORT_SHA
:
"
short-sha"
volumes
:
volumes
:
-
.:/usr/src/app
-
.:/usr/src/app
-
defense-finder-wiki-node-modules:/usr/src/app/node_modules
-
defense-finder-wiki-node-modules:/usr/src/app/node_modules
...
...
This diff is collapsed.
Click to expand it.
nuxt.config.ts
+
1
−
0
View file @
01d2b161
...
@@ -77,6 +77,7 @@ export default defineNuxtConfig({
...
@@ -77,6 +77,7 @@ export default defineNuxtConfig({
runtimeConfig
:
{
runtimeConfig
:
{
public
:
{
public
:
{
shortSha
:
'
xxxxx
'
,
defenseFinderWebservice
:
'
/
'
,
defenseFinderWebservice
:
'
/
'
,
hostUrl
:
"
http://localhost:8082
"
,
hostUrl
:
"
http://localhost:8082
"
,
meilisearchClient
:
{
meilisearchClient
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment