Skip to content
Snippets Groups Projects
Verified Commit 9393da42 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Tag based deploy

parent 3ca570a5
No related branches found
No related tags found
No related merge requests found
Pipeline #877 passed
......@@ -11,12 +11,14 @@ before_script:
build:
stage: build
script:
- mkdir public
- for f in dist/*.tgz; do tar -C ./public -xzf "$f"; done
- npm install
- npm run build
after_script:
- echo "{\"job_token\":\"$CI_JOB_TOKEN\", \"name\":\"$SITE_NAME\" }" > request.json
- TAG=`git describe --tags`
- echo "{\"job_token\":\"$CI_JOB_TOKEN\", \"name\":\"$SITE_NAME\", \"tag\":\"$TAG\" }" > request.json
- "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"
artifacts:
expire_in: 30 min
paths:
- $ARTIFACTS_PATH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment