From c27e49c5da93d0311e126ff18e337fb68d2a6e9b Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Mon, 3 Jan 2022 17:50:38 +0100 Subject: [PATCH] ci(ant.k8s.vxm.cz): add deployment to prod --- sites/ant.k8s.vxm.cz/.gitlab-ci.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/sites/ant.k8s.vxm.cz/.gitlab-ci.yml b/sites/ant.k8s.vxm.cz/.gitlab-ci.yml index f6908a9..7fead24 100644 --- a/sites/ant.k8s.vxm.cz/.gitlab-ci.yml +++ b/sites/ant.k8s.vxm.cz/.gitlab-ci.yml @@ -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"