try to add variables
Hadrien Froger hadrien@octree.ch
Thu, 23 Jul 2020 00:15:14 +0100
2 files changed,
8 insertions(+),
6 deletions(-)
M
.gitlab-ci.yml
→
.gitlab-ci.yml
@@ -29,6 +29,8 @@
Build: stage: build image: docker:stable-git + environment: + REACT_APP_URL: $ENV_URL rules: - if: '$CI_COMMIT_REF_NAME == "master"' script:
M
app/public/index.html
→
app/public/index.html
@@ -10,7 +10,7 @@ />
<meta name="theme-color" content="#000000" /> <meta property="og:site_name" content="Caroster" /> <meta property="og:title" content="Caroster - Covoiturage de groupe" /> - <meta property="og:url" content="https://app.caroster.io" /> + <meta property="og:url" content="%REACT_APP_URL%" /> <meta property="og:type" content="website" /> <meta property="og:description"@@ -18,7 +18,7 @@ content="Covoiturez à un événement en proposant une voiture ou en prenant une place."
/> <meta property="og:image" - content="https://app.caroster.io/Caroster_Octree_Social.jpg" + content="%REACT_APP_URL%/Caroster_Octree_Social.jpg" /> <meta property="og:image:width" content="1500" /> <meta property="og:image:height" content="843" />@@ -26,14 +26,14 @@ <meta itemprop="name" content="Caroster - Covoiturage de groupe" />
<meta itemprop="url" content="https://app.caroster.io" /> <meta itemprop="thumbnailUrl" - content="https://app.caroster.io/Caroster_Octree_Social.jpg" + content="%REACT_APP_URL%/Caroster_Octree_Social.jpg" /> - <link rel="image_src" href="https://app.caroster.io/Caroster_Octree_Social.jpg" /> - <meta itemprop="image" content="https://app.caroster.io/Caroster_Octree_Social.jpg" /> + <link rel="image_src" href="%REACT_APP_URL%/Caroster_Octree_Social.jpg" /> + <meta itemprop="image" content="%REACT_APP_URL%/Caroster_Octree_Social.jpg" /> <meta name="twitter:title" content="Caroster - Covoiturage de groupe" /> <meta name="twitter:image" - content="https://app.caroster.io/Caroster_Octree_Social.jpg" + content="%REACT_APP_URL%/Caroster_Octree_Social.jpg" /> <meta name="twitter:url" content="https://app.caroster.io" /> <meta name="twitter:card" content="summary" />