-
Notifications
You must be signed in to change notification settings - Fork 97
/
.gitlab-ci.yml
33 lines (30 loc) · 946 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
variables:
S3_UNICONS_BUCKET: unicons-iconscout-a5996f0
stages:
- build
- deploy
build:
image: "node:10.16.3-alpine"
stage: build
script:
- npm ci --progress=false
- npm run line:build
- npm run monochrome:build
- rm -rf node_modules dist
artifacts:
expire_in: 1 week
paths:
- ./
deploy:
image: "garland/aws-cli-docker:latest"
stage: deploy
dependencies:
- build
needs:
- build
script:
- aws s3 cp ./ s3://$S3_UNICONS_BUCKET/release/$CI_COMMIT_REF_NAME/ --recursive --exclude ".git/*" --exclude "node_modules/*" --exclude "build/*" --exclude ".gitlab-ci.yml" --endpoint-url $AWS_ENDPOINT
- aws s3 cp ./json/ s3://$S3_UNICONS_BUCKET/release/$CI_COMMIT_REF_NAME/json/ --recursive --content-type application/json --endpoint-url $AWS_ENDPOINT
environment:
name: production/$CI_COMMIT_REF_NAME
url: https://unicons.iconscout.com/release/$CI_COMMIT_REF_NAME/index.html