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: ...@@ -11,12 +11,14 @@ before_script:
build: build:
stage: build stage: build
script: script:
- mkdir public - npm install
- for f in dist/*.tgz; do tar -C ./public -xzf "$f"; done - npm run build
after_script: 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" - "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"
artifacts: artifacts:
expire_in: 30 min expire_in: 30 min
paths: paths:
- $ARTIFACTS_PATH - $ARTIFACTS_PATH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment