1
0
Fork 0

ci(ant.k8s.vxm.cz): add deployment to prod

This commit is contained in:
Vojtěch Mareš 2022-01-03 17:50:38 +01:00
parent ee2946e78d
commit c27e49c5da
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -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"