mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
build(ci): set ci build/deploy only for develop
This commit is contained in:
parent
9d41a73868
commit
099cba4a55
@ -48,22 +48,21 @@ build-image:
|
|||||||
variables:
|
variables:
|
||||||
PUSH_IMAGE: "true"
|
PUSH_IMAGE: "true"
|
||||||
REGISTRY_PATH: "${HARBOR_HOST}/${HARBOR_PROJECT}"
|
REGISTRY_PATH: "${HARBOR_HOST}/${HARBOR_PROJECT}"
|
||||||
REGISTRY_IMAGE_PATH: "${REGISTRY_PATH}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}"
|
REGISTRY_IMAGE_PATH: "${REGISTRY_PATH}/${CI_PROJECT_NAME}:develop"
|
||||||
|
only:
|
||||||
|
- develop
|
||||||
|
|
||||||
deploy-image:
|
deploy-image:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image:
|
image:
|
||||||
name: bitnami/kubectl:latest
|
name: bitnami/kubectl:latest
|
||||||
entrypoint: ['']
|
entrypoint: ['']
|
||||||
environment:
|
|
||||||
name: develop
|
|
||||||
url: http://162.19.225.127
|
|
||||||
script:
|
script:
|
||||||
- kubectl config get-contexts
|
- kubectl config get-contexts
|
||||||
- kubectl config use-context framasoft/framadate/funky-framadate-front:framadate-cluster
|
- kubectl config use-context framasoft/framadate/funky-framadate-front:framadate-cluster
|
||||||
- kubectl -n framadate rollout restart deployments/frontend-deployment
|
- kubectl -n framadate rollout restart deployments/frontend-deployment
|
||||||
except:
|
only:
|
||||||
- master
|
- develop
|
||||||
|
|
||||||
# build:
|
# build:
|
||||||
# image: node:16
|
# image: node:16
|
||||||
|
Loading…
Reference in New Issue
Block a user