ci(ant.k8s.vxm.cz): add deployment to prod
This commit is contained in:
parent
ee2946e78d
commit
c27e49c5da
1 changed files with 14 additions and 10 deletions
|
|
@ -15,13 +15,17 @@ build:
|
|||
- yarn build
|
||||
- docker build --tag $IMAGE:$IMAGE_TAG --file ./build/Containerfile .
|
||||
- docker push $IMAGE:$IMAGE_TAG
|
||||
# deploy:
|
||||
# stage: deploy
|
||||
# image: sikalabs/ci
|
||||
# environment:
|
||||
# name: production
|
||||
# url: https://ant.k8s.vxm.cz
|
||||
# script:
|
||||
# - cd sites/ant.k8s.vxm.cz
|
||||
# - mkdir -p _deploy/ant.k8s.vxm.cz
|
||||
# - helm template ant.k8s.vxm.cz ./deploy/chart/ant.k8s.vxm.cz --set image.repository=$IMAGE --set image.tag=$IMAGE_TAG > ./_deploy/ant.k8s.vxm.cz/generated.yml
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
image: sikalabs/ci
|
||||
environment:
|
||||
name: production
|
||||
url: https://ant.k8s.vxm.cz
|
||||
script:
|
||||
- >
|
||||
curl --request PUT --header 'PRIVATE-TOKEN: ${CI_PUSH_TOKEN}'
|
||||
--header "Content-Type: application/json"
|
||||
--data '{"branch": "main", "author_email": "ci@gitlab.mareshq.com", "author_name": "GitLab CI [bot]",
|
||||
"content": "image: ${IMAGE}:${IMAGE_TAG}", "commit_message": "[auto] build(signpost): update image to ${IMAGE}:${IMAGE_TAG}"}'
|
||||
"https://gitlab.mareshq.com/api/v4/projects/60/repository/files/signpost%2Fvalues%2Eyaml"
|
||||
|
|
|
|||
Reference in a new issue