2020-06-12 19:17:39 +02:00
|
|
|
# image: weboaks/node-karma-protractor-chrome
|
2023-03-23 12:05:12 +01:00
|
|
|
# image: node:16
|
|
|
|
include:
|
|
|
|
- "kaniko-build.gitlab-ci.yml"
|
2020-04-16 12:34:36 +02:00
|
|
|
|
|
|
|
stages:
|
2020-10-31 16:12:44 +01:00
|
|
|
- build
|
2023-03-27 12:54:27 +02:00
|
|
|
- deploy
|
2020-10-31 16:12:44 +01:00
|
|
|
# - pages
|
2021-11-22 12:14:56 +01:00
|
|
|
# - test
|
2020-04-21 10:50:26 +02:00
|
|
|
# - e2e
|
2020-04-16 12:34:36 +02:00
|
|
|
|
2023-03-23 12:05:12 +01:00
|
|
|
# cache:
|
|
|
|
# paths:
|
|
|
|
# - node_modules/
|
|
|
|
# - .yarn
|
2020-04-16 12:34:36 +02:00
|
|
|
|
2020-10-31 16:12:44 +01:00
|
|
|
#pages:
|
|
|
|
# stage: pages
|
|
|
|
# script:
|
|
|
|
# - yarn install --pure-lockfile
|
|
|
|
# - yarn build:prod:gitlabpage
|
|
|
|
# - mv dist/framadate/ public/
|
|
|
|
# artifacts:
|
|
|
|
# paths:
|
|
|
|
# - public
|
|
|
|
# expire_in: '2 hours'
|
|
|
|
# only:
|
|
|
|
# - develop
|
2020-06-04 13:50:37 +02:00
|
|
|
|
2020-10-31 16:12:44 +01:00
|
|
|
#test:
|
|
|
|
# stage: test
|
|
|
|
# script:
|
|
|
|
# - npm i
|
|
|
|
# - pkill Xvfb
|
|
|
|
# - npm run test:ci
|
|
|
|
# artifacts:
|
|
|
|
# paths:
|
|
|
|
# - coverage/
|
|
|
|
# cache:
|
|
|
|
# policy: pull
|
2020-04-16 12:34:36 +02:00
|
|
|
|
2023-03-23 12:05:12 +01:00
|
|
|
build-image:
|
2023-03-22 14:21:46 +01:00
|
|
|
stage: build
|
2023-03-22 20:28:35 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
2023-03-23 12:05:12 +01:00
|
|
|
extends: .kaniko_build
|
|
|
|
variables:
|
|
|
|
PUSH_IMAGE: "true"
|
2023-03-23 13:06:19 +01:00
|
|
|
REGISTRY_IMAGE_PATH: "${HARBOR_HOST}/${HARBOR_PROJECT}/${CI_PROJECT_NAME}"
|
2023-03-22 14:21:46 +01:00
|
|
|
|
2023-03-27 12:54:27 +02:00
|
|
|
deploy:
|
|
|
|
image:
|
|
|
|
name: bitnami/kubectl:latest
|
|
|
|
entrypoint: ['']
|
|
|
|
script:
|
|
|
|
- kubectl config get-contexts
|
|
|
|
- kubectl config use-context framasoft/framadate/funky-framadate-front:framadate-local-frontend
|
|
|
|
- kubectl get pods
|
|
|
|
|
2023-03-23 11:29:49 +00:00
|
|
|
# build:
|
|
|
|
# image: node:16
|
|
|
|
# stage: build
|
|
|
|
# before_script:
|
|
|
|
# - yarn
|
|
|
|
# script:
|
|
|
|
# - yarn run build:prod
|
|
|
|
# cache:
|
|
|
|
# policy: pull
|
2023-03-23 12:10:37 +01:00
|
|
|
|
2020-06-04 13:21:07 +02:00
|
|
|
#e2e:
|
|
|
|
# stage: e2e
|
|
|
|
# script:
|
|
|
|
# - npm i
|
|
|
|
# - pkill Xvfb
|
|
|
|
# - npm run e2e
|
|
|
|
|
|
|
|
#pages:
|
|
|
|
# stage: .post
|
|
|
|
# dependencies:
|
|
|
|
# - test
|
|
|
|
# script:
|
|
|
|
# - mv coverage/ public/
|
|
|
|
# artifacts:
|
|
|
|
# paths:
|
|
|
|
# - public
|
2021-05-18 12:12:08 +02:00
|
|
|
# expire_in: 30 dateChoices
|
2020-06-04 13:21:07 +02:00
|
|
|
# only:
|
|
|
|
# - master
|