Skip to content
Snippets Groups Projects
Commit 3f980c0a authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

disable pipeline and update dependencies

parent a73b3dd1
No related branches found
No related tags found
1 merge request!19fix type imports
stages:
- Build
# - Test
- Docker build
- Deploy
# stages:
# - Build
# # - Test
# - Docker build
# - Deploy
#services:
# - mongo
# #services:
# # - mongo
variables:
CONTAINER_IMAGE: 'registry.kszk.bme.hu/bodysch/frontend:$CI_COMMIT_REF_NAME'
# MONGODB_TEST_URI: 'mongodb://mongo/bodysch-test'
Build:
stage: Build
tags: [kszk]
image: node:14
script:
- npm install
- npm run build
cache:
paths:
- node_modules/
- build/
artifacts:
expire_in: 1 day
paths:
- node_modules/
- build/
# variables:
# CONTAINER_IMAGE: 'registry.kszk.bme.hu/bodysch/frontend:$CI_COMMIT_REF_NAME'
# # MONGODB_TEST_URI: 'mongodb://mongo/bodysch-test'
#Test:
# stage: Test
# Build:
# stage: Build
# tags: [kszk]
# image: node:14
# script:
# - npm test
# - npm install
# - npm run build
# cache:
# paths:
# - node_modules/
# - build/
# artifacts:
# expire_in: 1 week
# expire_in: 1 day
# paths:
# - junit.xml
# reports:
# junit: junit.xml
# - node_modules/
# - build/
Docker build:
stage: Docker build
tags: [kszk]
only:
- master
- DEV
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: ['']
script:
- echo "{\"auths\":{\"registry.kszk.bme.hu\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
Deploy dev:
stage: Deploy
tags: [kszk-deploy] # request the custom SSH executor
only:
- DEV
script: # your deploy logic
- echo "$REGISTRY_PASSWORD" | docker login registry.kszk.bme.hu --username $REGISTRY_USER --password-stdin
- cp docker-compose.dev.yml /home/kszk-gitlab-deployer/bodysch-dev/
- cd /home/kszk-gitlab-deployer/bodysch-dev/
- docker-compose -f docker-compose.dev.yml --no-ansi pull
- docker-compose -f docker-compose.dev.yml up -d
- docker system prune -f
variables:
SSH_HOST: donald.sch.bme.hu # required
SSH_USER: kszk-gitlab-deployer # default: kszk-gitlab-deployer
SSH_PORT: 10122 # default: 22
# Docker build:
# stage: Docker build
# tags: [kszk]
# only:
# - master
# - DEV
# image:
# name: gcr.io/kaniko-project/executor:debug
# entrypoint: ['']
# script:
# - echo "{\"auths\":{\"registry.kszk.bme.hu\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
# Deploy prod:
# Deploy dev:
# stage: Deploy
# tags: [kszk-deploy] # request the custom SSH executor
# only:
# - master
# - DEV
# script: # your deploy logic
# - echo "$REGISTRY_PASSWORD" | docker login registry.kszk.bme.hu --username $REGISTRY_USER --password-stdin
# - cp docker-compose.yml /home/kszk-gitlab-deployer/kszkepzes-prod/
# - cd /home/kszk-gitlab-deployer/kszkepzes-prod/
# - docker-compose --no-ansi pull
# - docker-compose up -d
# - cp docker-compose.dev.yml /home/kszk-gitlab-deployer/bodysch-dev/
# - cd /home/kszk-gitlab-deployer/bodysch-dev/
# - docker-compose -f docker-compose.dev.yml --no-ansi pull
# - docker-compose -f docker-compose.dev.yml up -d
# - docker system prune -f
# variables:
# SSH_HOST: donald.sch.bme.hu # required
# SSH_USER: kszk-gitlab-deployer # default: kszk-gitlab-deployer
# SSH_PORT: 10122 # default: 22
This diff is collapsed.
......@@ -45,18 +45,17 @@
"extends": "./eslintrc.js"
},
"dependencies": {
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@types/styled-components": "^5.1.2",
"axios": "^0.20.0",
"http-proxy-middleware": "^1.0.5",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-hook-form": "^6.5.3",
"@material-ui/core": "^4.11.2",
"@material-ui/icons": "^4.11.2",
"axios": "^0.21.1",
"http-proxy-middleware": "^1.0.6",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-hook-form": "^6.14.2",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-scripts": "^3.4.3",
"styled-components": "^5.1.1",
"react-scripts": "^3.4.4",
"styled-components": "^5.2.1",
"typescript": "^3.9.7"
},
"devDependencies": {
......@@ -64,26 +63,26 @@
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"@types/jest": "^24.9.1",
"@types/node": "^12.12.53",
"@types/react": "^16.9.43",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.5",
"@types/styled-components": "^5.1.2",
"@typescript-eslint/eslint-plugin": "^3.7.0",
"@typescript-eslint/parser": "^3.7.0",
"eslint": "^7.5.0",
"@types/node": "^12.19.15",
"@types/react": "^16.14.2",
"@types/react-dom": "^16.9.10",
"@types/react-router-dom": "^5.1.7",
"@types/styled-components": "^5.1.7",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"eslint": "^7.18.0",
"eslint-config-airbnb-typescript": "^9.0.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.3",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"husky": "^4.3.8",
"lint-staged": "^10.5.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"prettier": "^2.2.1",
"prettier-plugin-organize-imports": "^1.1.1",
"prettier-plugin-packagejson": "^2.2.5",
"prettier-plugin-packagejson": "^2.2.9",
"prettier-plugin-sh": "^0.5.0"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment