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

Pridani CI

parent 4ef08a0c
No related branches found
No related tags found
No related merge requests found
image: node:buster
variables:
SITE_NAME: piratipracuji.cz
ARTIFACTS_PATH: build
WEBHOOK_URL: https://ha-web.pirati.cz
BASE_URL: https://www.piratipracuji.cz
API_URL: https://www.piratipracuji.cz/api/
before_script:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq curl
build:
stage: build
script:
- cd src-front
- npm install
- npm run generate
after_script:
- echo "{\"job_token\":\"$CI_JOB_TOKEN\", \"name\":\"$SITE_NAME\" }" > 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