Skip to content
Snippets Groups Projects
Commit 300dc2c3 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Deploy frontend builds on tags

parent 77ef0df1
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,24 @@ frontend-build:
# On default branches we build using a relative API Url
API_BASE_URL: /api/v1
frontend-deploy:
image: python:3-alpine
stage: deploy
rules:
- if: '$CI_COMMIT_TAG'
when: on_success
- when: never
dependencies:
- frontend-build
# Needed to avoid triggering global npm ci
before_script:
- ''
script:
- ci/deploy.sh
.surge:
stage: deploy
......
VERSION=${VERSION:-${CI_COMMIT_TAG}}
[ -z "$VERSION" ] && echo "No version specified" && exit 1
# Remove dev index
rm dist/index.html dist/index.html.gz
pip install awscli
aws s3 cp --recursive dist s3://teklia-assets-release/arkindex/$VERSION/
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