chore: domain change.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
aminecmi 2023-10-22 20:51:07 +02:00
parent 5a020dd6fe
commit d8f6e0c99f
2 changed files with 3 additions and 15 deletions

View File

@ -3,18 +3,6 @@ type: docker
name: analyseAndBuild name: analyseAndBuild
steps: steps:
- name: code-analysis
image: sonarsource/sonar-scanner-cli
detach: true
failure: ignore
commands:
- sonar-scanner -Dsonar.projectKey=cv -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN
environment:
SONAR_HOST_URL:
from_secret: sonarScannerHostUrl
SONAR_LOGIN:
from_secret: sonarScannerLogin
- name: buildAndTest - name: buildAndTest
image: node:14 image: node:14
commands: commands:
@ -72,7 +60,7 @@ steps:
- name: scpFiles - name: scpFiles
image: appleboy/drone-scp image: appleboy/drone-scp
settings: settings:
host: amine-louveau.fr host: amine-bouabdallaoui.fr
username: ubuntu username: ubuntu
key: key:
from_secret: privateKey from_secret: privateKey
@ -83,7 +71,7 @@ steps:
- name: deploy - name: deploy
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: amine-louveau.fr host: amine-bouabdallaoui.fr
user: ubuntu user: ubuntu
key: key:
from_secret: privateKey from_secret: privateKey

View File

@ -16,7 +16,7 @@ function CV() {
const [cv, setCV] = useState<Me>(new Me()); const [cv, setCV] = useState<Me>(new Me());
useEffect(() => { useEffect(() => {
fetch(process.env.REACT_APP_API_BASE_URL + "/api/me") fetch(/*process.env.REACT_APP_API_BASE_URL + */"https://amine-bouabdallaoui.fr/api/me")
.then(res => res.json()) .then(res => res.json())
.then( .then(
(result: Me) => { (result: Me) => {