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

CI Config

parent c6c4bd81
No related branches found
No related tags found
No related merge requests found
image: node:buster
variables:
SITE_NAME: cf2021.pirati.cz
ARTIFACTS_PATH: public
WEBHOOK_URL: https://ha-web.pirati.cz
before_script:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq curl
build:
stage: build
script:
- npm install
- npm run build
after_script:
- TAG=`git describe --tags $(git rev-list --tags --max-count=1)`
- 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.
Please register or to comment