Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit f8d9494d authored by Yannick Huard's avatar Yannick Huard
Browse files

chore: clean up code

parent 82b0b67b
No related branches found
No related tags found
1 merge request!1feat: move repository from Github
EBSI_ENV=conformance
version: "3.7"
services:
api-catalog:
image: 305472350643.dkr.ecr.eu-central-1.amazonaws.com/ebsi/api-catalog:conformance_ebsiint-4750-fix_v2.0.0
build:
context: ../..
args:
EBSI_ENV: ${EBSI_ENV?Missing EBSI_ENV variable}
EBSI_ENV=pilot
version: "3.7"
services:
api-catalog:
image: 305472350643.dkr.ecr.eu-central-1.amazonaws.com/ebsi/api-catalog:pilot_ebsiint-4750-fix_v2.0.0
build:
context: ../..
args:
EBSI_ENV: ${EBSI_ENV?Missing EBSI_ENV variable}
EBSI_ENV=prod
version: "3.7"
services:
api-catalog:
image: 305472350643.dkr.ecr.eu-central-1.amazonaws.com/intebsi/api-catalog:prod_ebsiint-4750-fix_v2.0.0
build:
context: ../..
args:
EBSI_ENV: ${EBSI_ENV?Missing EBSI_ENV variable}
EBSI_ENV=test
version: "3.7"
services:
api-catalog:
image: 305472350643.dkr.ecr.eu-central-1.amazonaws.com/ebsi/api-catalog:test_ebsiint-4750-fix_v2.0.0
build:
context: ../..
args:
EBSI_ENV: ${EBSI_ENV?Missing EBSI_ENV variable}
...@@ -7,10 +7,7 @@ ...@@ -7,10 +7,7 @@
!docusaurus.config.js !docusaurus.config.js
!tsconfig.json !tsconfig.json
!yarn.lock !yarn.lock
!api !dsd
!libraries
!nginx !nginx
!schemas
!sidebars
!src !src
!static !static
# Supported values: "local" | "test" | "conformance" | "pilot" | "prod" # Examples of environments variables we can use
EBSI_ENV=
.docusaurus .docusaurus
build build
coverage
node_modules node_modules
src/theme src/theme
# used build-time, no TS static/oxygen
scripts
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
"airbnb-typescript", "airbnb-typescript",
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking", "plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:prettier/recommended" "plugin:prettier/recommended"
], ],
"parserOptions": { "parserOptions": {
......
.env .env
!.ci/*/.env
build build
coverage
node_modules node_modules
.docusaurus .docusaurus
/.docusaurus /.docusaurus
/.husky /.husky
/api
/build /build
/coverage
/node_modules /node_modules
/static/oxygen
/.docusaurus /.docusaurus
/.husky /.husky
/api
/build /build
/coverage
/node_modules /node_modules
/static/oxygen
{ {
"extends": [ "extends": [
"stylelint-config-standard-scss", "stylelint-config-standard",
"stylelint-config-prettier-scss", "stylelint-config-prettier",
"stylelint-config-css-modules" "stylelint-config-css-modules"
], ],
"rules": { "rules": {
......
This diff is collapsed.
# Api Catalog # OOTS API
# #
# Multi-stage build that: # Multi-stage build that:
# - creates a production build of the frontend # - creates a production build of the frontend
# - serves the build with nginx # - serves the build with nginx
# #
# Required ARG variables:
# - EBSI_ENV ("test", "conformance", "pilot", "prod")
#
FROM node:16.15.1-alpine3.16@sha256:c785e617c8d7015190c0d41af52cc69be8a16e3d9eb7cb21f0bb58bcfca14d6b as base FROM node:16.15.1-alpine3.16@sha256:c785e617c8d7015190c0d41af52cc69be8a16e3d9eb7cb21f0bb58bcfca14d6b as base
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY package.json yarn.lock ./ COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --silent && yarn cache clean RUN yarn install --frozen-lockfile --silent && yarn cache clean
COPY . . COPY . .
ARG EBSI_ENV
RUN yarn build RUN yarn build
# Stage 2: run nginx # Stage 2: run nginx
......
node {
try {
stage('Clone repo') {
checkout scm
}
stage('Deploy') {
if (env.BRANCH_NAME == 'conformance') {
ebsi_conformance_deploy("clone_repo": false)
} else {
ebsi_fast_deploy("clone_repo": false)
}
}
} catch (e) {
throw e
} finally {
cleanWs()
dir("${env.WORKSPACE}@script") {
deleteDir()
}
}
}
pipeline {
agent any
stages {
stage('Setup') {
steps {
nodejs(nodeJSInstallationName: '16.15.1') {
sh 'yarn install --frozen-lockfile'
sh 'yarn run audit'
}
}
}
stage('Lint') {
steps {
nodejs(nodeJSInstallationName: '16.15.1') {
sh 'yarn lint'
}
}
}
stage('Build') {
// Make sure the website can be built
steps {
nodejs(nodeJSInstallationName: '16.15.1') {
sh 'yarn build'
}
}
}
stage('Test') {
steps {
nodejs(nodeJSInstallationName: '16.15.1') {
sh 'yarn test:ci'
}
}
}
stage ('Lint Dockerfile') {
agent {
docker {
image 'hadolint/hadolint:latest-debian'
}
}
steps {
sh 'hadolint Dockerfile'
}
}
stage('SonarQube Analysis') {
steps {
withSonarQubeEnv('LocalSonar'){
sh "/var/lib/jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonar-scanner/bin/sonar-scanner -Dsonar.host.url=https://infra.ebsi.xyz/sonar -Dsonar.projectName=api-catalog -Dsonar.projectVersion=1.0 -Dsonar.projectKey=api-catalog -Dsonar.sources=. -Dsonar.projectBaseDir=${WORKSPACE}"
}
}
}
stage("Quality Gate") {
steps {
waitForQualityGate abortPipeline: true
}
}
}
post {
always {
cleanWs()
dir("${env.WORKSPACE}@script") {
deleteDir()
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment