funky-framadate-front/.gitlab-ci.yml

96 lines
1.6 KiB
YAML
Raw Normal View History

2020-06-12 19:17:39 +02:00
# image: weboaks/node-karma-protractor-chrome
# image: node:16
include:
- "kaniko-build.gitlab-ci.yml"
2020-04-16 12:34:36 +02:00
stages:
2023-03-28 13:04:58 +02: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
# 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-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-28 13:04:58 +02:00
build-image:
stage: build
tags:
- docker
extends: .kaniko_build
variables:
PUSH_IMAGE: "true"
2023-04-03 11:19:21 +02:00
REGISTRY_PATH: "${HARBOR_HOST}/${HARBOR_PROJECT}"
REGISTRY_IMAGE_PATH: "${REGISTRY_PATH}/${CI_PROJECT_NAME}:develop"
only:
- develop
2023-03-22 14:21:46 +01:00
2023-03-27 12:56:17 +02:00
deploy-image:
stage: deploy
2023-03-27 12:54:27 +02:00
image:
name: bitnami/kubectl:latest
entrypoint: ['']
script:
- kubectl config get-contexts
- kubectl config use-context framasoft/framadate/funky-framadate-front:framadate-cluster
2023-03-28 13:00:00 +02:00
- kubectl -n framadate rollout restart deployments/frontend-deployment
only:
- develop
2023-03-27 12:54:27 +02:00
2023-03-23 12:29:49 +01: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
#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
# only:
# - master