Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Frontend
Commits
300dc2c3
Commit
300dc2c3
authored
5 years ago
by
Erwan Rouchet
Committed by
Bastien Abadie
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Deploy frontend builds on tags
parent
77ef0df1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+18
-0
18 additions, 0 deletions
.gitlab-ci.yml
ci/deploy.sh
+8
-0
8 additions, 0 deletions
ci/deploy.sh
with
26 additions
and
0 deletions
.gitlab-ci.yml
+
18
−
0
View file @
300dc2c3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
ci/deploy.sh
0 → 100755
+
8
−
0
View file @
300dc2c3
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
/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment