Compare commits
No commits in common. "master" and "0cc73dfb46538ffd8645390f0eec67c027f79dc4" have entirely different histories.
master
...
0cc73dfb46
|
@ -1,5 +1,5 @@
|
||||||
.idea/
|
.idea/
|
||||||
e2e/
|
e2e/
|
||||||
../../../valuya/cluster/valuya-cluster-state/charlyghislaindotcom/jenkins/
|
jenkins/
|
||||||
node_modules/
|
node_modules/
|
||||||
src/
|
src/
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,4 @@
|
||||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
.angular/
|
|
||||||
|
|
||||||
# compiled output
|
# compiled output
|
||||||
/dist
|
/dist
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
FROM docker.valuya.com/apache-front:2.4.52
|
FROM docker.charlyghislain.com/front-apache:2.4.39-a
|
||||||
ARG CLANG=en
|
ARG CLANG=en
|
||||||
|
|
||||||
COPY docker/httpd.conf /var/run/httpd.conf.tmp
|
COPY docker/httpd.conf /var/run/httpd.conf.tmp
|
||||||
RUN mkdir -p /var/run/httpd \
|
RUN apk add gettext \
|
||||||
&& (cat /var/run/httpd.conf.tmp | envsubst > /var/run/httpd/charlyghislaindotcom.conf)
|
&& mkdir /var/run/httpd \
|
||||||
|
&& cat /var/run/httpd.conf.tmp | envsubst > /var/run/httpd/charlyghislaindotcom.conf
|
||||||
|
|
||||||
# dist/fr/fr/ -> /var/www/html/fr/
|
# dist/fr/fr/ -> /var/www/html/fr/
|
||||||
COPY dist/${CLANG}/${CLANG}/ /var/www/html/${CLANG}/
|
COPY dist/${CLANG}/${CLANG}/ /var/www/html/${CLANG}/
|
||||||
|
|
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -13,7 +13,7 @@ pipeline {
|
||||||
description: 'Image to push (suffixed -fr or -en)'
|
description: 'Image to push (suffixed -fr or -en)'
|
||||||
)
|
)
|
||||||
string(
|
string(
|
||||||
name: 'REPO', defaultValue: 'docker.valuya.com',
|
name: 'REPO', defaultValue: 'docker.charlyghislain.com',
|
||||||
description: 'Repo to push'
|
description: 'Repo to push'
|
||||||
)
|
)
|
||||||
credentials(
|
credentials(
|
||||||
|
@ -24,11 +24,11 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage ('Build') {
|
stage ('Build') {
|
||||||
steps {
|
steps {
|
||||||
nodejs(nodeJSInstallationName: 'node 16', configId: 'npm-global-config') { catchError {
|
nodejs(nodeJSInstallationName: 'node 10', configId: 'npm-global-config') { catchError {
|
||||||
ansiColor('xterm') {
|
ansiColor('xterm') {
|
||||||
sh '''
|
sh '''
|
||||||
rm -rfv dist*
|
rm -rfv dist*
|
||||||
npm ci
|
npm install
|
||||||
|
|
||||||
export DATE="$(date -Iseconds)"
|
export DATE="$(date -Iseconds)"
|
||||||
export COMMIT="$(git rev-parse --short HEAD)"
|
export COMMIT="$(git rev-parse --short HEAD)"
|
||||||
|
@ -69,14 +69,16 @@ pipeline {
|
||||||
stage ('Update cluster') {
|
stage ('Update cluster') {
|
||||||
when {
|
when {
|
||||||
allOf {
|
allOf {
|
||||||
expression { return env.BRANCH_NAME == 'master' }
|
|
||||||
expression { return params.SKIP_PUBLISH != true }
|
expression { return params.SKIP_PUBLISH != true }
|
||||||
expression { return params.SKIP_CLUSTER_UPDATE != true }
|
expression { return params.SKIP_CLUSTER_UPDATE != true }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
build job: 'cghislai-releases/charlyghislaindotcom-release/master', parameters: [
|
build job: 'infra/cluster-conf-update', parameters: [
|
||||||
string(name:"IMAGE_TAG", value:"\"${VERSION}\""),
|
string(name:"STACK", value:"charlyghislaindotcom"),
|
||||||
|
string(name:"VALUES_FILE", value:"values.yaml"),
|
||||||
|
string(name:"VALUES_KEY", value:".deployment.imageTag"),
|
||||||
|
string(name:"VALUES_VALUE", value:"\"${VERSION}\""),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
jenkins/dsl/_charlyghislaindotcom.groovy
Normal file
1
jenkins/dsl/_charlyghislaindotcom.groovy
Normal file
|
@ -0,0 +1 @@
|
||||||
|
folder('charlyghislaindotcom')
|
43
jenkins/dsl/charlyghislaindotcom.groovy
Normal file
43
jenkins/dsl/charlyghislaindotcom.groovy
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
multibranchPipelineJob('charlyghislaindotcom/charlyghislaindotcom') {
|
||||||
|
branchSources {
|
||||||
|
branchSource {
|
||||||
|
source {
|
||||||
|
git {
|
||||||
|
id('charlyghislaindotcom-front_repo') // IMPORTANT: use a constant and unique identifier
|
||||||
|
remote('ssh://git@gitea.charlyghislain.com:2022/cghislai/charlyghislaindotcom.git')
|
||||||
|
credentialsId('jenkins-jenkins-ssh-key')
|
||||||
|
traits {
|
||||||
|
gitBranchDiscovery()
|
||||||
|
wipeWorkspaceTrait()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
strategy {
|
||||||
|
namedBranchesDifferent {
|
||||||
|
namedExceptions {
|
||||||
|
named {
|
||||||
|
name('master')
|
||||||
|
props {
|
||||||
|
suppressAutomaticTriggering()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
triggers {
|
||||||
|
periodic(30)
|
||||||
|
}
|
||||||
|
orphanedItemStrategy {
|
||||||
|
discardOldItems {
|
||||||
|
daysToKeep(7)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
factory {
|
||||||
|
workflowBranchProjectFactory {
|
||||||
|
scriptPath('Jenkinsfile')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
15228
package-lock.json
generated
15228
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
57
package.json
57
package.json
|
@ -11,41 +11,40 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^13.3.3",
|
"@angular/animations": "^11.2.0",
|
||||||
"@angular/common": "^13.3.3",
|
"@angular/common": "^11.2.0",
|
||||||
"@angular/compiler": "^13.3.3",
|
"@angular/compiler": "^11.2.0",
|
||||||
"@angular/core": "^13.3.3",
|
"@angular/core": "^11.2.0",
|
||||||
"@angular/forms": "^13.3.3",
|
"@angular/forms": "^11.2.0",
|
||||||
"@angular/localize": "~13.4.0",
|
"@angular/localize": "~11.2.0",
|
||||||
"@angular/platform-browser": "^13.3.3",
|
"@angular/platform-browser": "^11.2.0",
|
||||||
"@angular/platform-browser-dynamic": "^13.3.3",
|
"@angular/platform-browser-dynamic": "^11.2.0",
|
||||||
"@angular/router": "^13.3.3",
|
"@angular/router": "^11.2.0",
|
||||||
"core-js": "^2.6.12",
|
"core-js": "^2.6.12",
|
||||||
"luxon": "^3.0.0",
|
"moment-es6": "^1.0.0",
|
||||||
"rxjs": "^7.0.0",
|
"rxjs": "^6.6.3",
|
||||||
"tslib": "^2.0.0",
|
"tslib": "^2.0.0",
|
||||||
"zone.js": "~0.11.5"
|
"zone.js": "~0.11.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~13.3.3",
|
"@angular-devkit/build-angular": "~0.1102.0",
|
||||||
"@angular/cli": "~13.3.3",
|
"@angular/cli": "~11.2.0",
|
||||||
"@angular/compiler-cli": "^13.3.3",
|
"@angular/compiler-cli": "^11.2.0",
|
||||||
"@angular/language-service": "^13.3.3",
|
"@angular/language-service": "^11.2.0",
|
||||||
"@types/jasmine": "~4.6.0",
|
"@types/jasmine": "~3.6.0",
|
||||||
"@types/jasminewd2": "^2.0.10",
|
"@types/jasminewd2": "^2.0.8",
|
||||||
"@types/node": "^16.11.27",
|
"@types/node": "^12.11.1",
|
||||||
"@types/luxon": "^3.0.0",
|
"codelyzer": "^6.0.0",
|
||||||
"codelyzer": "^6.0.2",
|
"jasmine-core": "~3.6.0",
|
||||||
"jasmine-core": "~4.6.0",
|
"jasmine-spec-reporter": "~5.0.0",
|
||||||
"jasmine-spec-reporter": "~7.0.0",
|
"karma": "~5.0.0",
|
||||||
"karma": "~6.4.0",
|
"karma-chrome-launcher": "~3.1.0",
|
||||||
"karma-chrome-launcher": "~3.2.0",
|
|
||||||
"karma-coverage-istanbul-reporter": "~3.0.2",
|
"karma-coverage-istanbul-reporter": "~3.0.2",
|
||||||
"karma-jasmine": "~5.1.0",
|
"karma-jasmine": "~4.0.0",
|
||||||
"karma-jasmine-html-reporter": "^2.0.0",
|
"karma-jasmine-html-reporter": "^1.5.0",
|
||||||
"protractor": "~7.0.0",
|
"protractor": "~7.0.0",
|
||||||
"ts-node": "~10.9.0",
|
"ts-node": "~5.0.1",
|
||||||
"tslint": "~6.1.0",
|
"tslint": "~6.1.0",
|
||||||
"typescript": "~4.6.3"
|
"typescript": "~4.1.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": [
|
|
||||||
"local>valuya.com-infra/renovate-config"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@ import {BuildInfoService} from './build-info.service';
|
||||||
import {Observable, of} from 'rxjs';
|
import {Observable, of} from 'rxjs';
|
||||||
import {catchError, defaultIfEmpty, filter, map, publishReplay, refCount} from 'rxjs/operators';
|
import {catchError, defaultIfEmpty, filter, map, publishReplay, refCount} from 'rxjs/operators';
|
||||||
import {BuildInfo} from './build-info';
|
import {BuildInfo} from './build-info';
|
||||||
import {DateTime} from 'luxon';
|
import moment from 'moment-es6';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
|
@ -36,7 +36,7 @@ export class AppComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
private parseDate(dateString: string) {
|
private parseDate(dateString: string) {
|
||||||
const parsedDateString = dateString == null ? undefined : DateTime.fromISO(dateString).toISODate();
|
const dateMoment = dateString == null ? moment() : moment(dateString);
|
||||||
return parsedDateString;
|
return dateMoment.format('DD/MM/YYYY HH:mm:ss');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
charlyghislain SRL
|
charlyghislain SRL
|
||||||
</li>
|
</li>
|
||||||
<li class="address">
|
<li class="address">
|
||||||
Rue Jean Francois, 5
|
Rue Godefroid 50/1
|
||||||
<br/>
|
<br/>
|
||||||
4500 Ben-Ahin (Belgium)
|
5000 Namur (Belgium)
|
||||||
</li>
|
</li>
|
||||||
<li class="number">
|
<li class="number">
|
||||||
BE0736581871
|
BE0736581871
|
||||||
|
|
Loading…
Reference in New Issue
Block a user