Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
devops
CI
Commits
5a5d23b3
Commit
5a5d23b3
authored
5 years ago
by
Harry Milne
Browse files
Options
Downloads
Patches
Plain Diff
add fe review apps template
parent
fbd6cd7b
Branches
Branches containing commit
Tags
3.0.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gitlab/fe-review-app.yml
+22
-0
22 additions, 0 deletions
gitlab/fe-review-app.yml
scripts/setup-fe-review-app.sh
+25
-0
25 additions, 0 deletions
scripts/setup-fe-review-app.sh
with
47 additions
and
0 deletions
gitlab/fe-review-app.yml
0 → 100644
+
22
−
0
View file @
5a5d23b3
# USAGE
# --
# include:
# - project: 'devops/ci'
# ref: 3.0.2
# file: gitlab/fe-review-apps.yml
# fe-review-app:
# extends: .fe-review-app-template
# script:
# - ./setup-fe-review-app.sh
.fe-review-app-template
:
environment
:
name
:
review/$CI_COMMIT_SHORT_SHA
url
:
https://iwoca-dev-public-frontend-bucket.s3-eu-west-1.amazonaws.com/$CI_PROJECT_PATH/$CI_COMMIT_SHORT_SHA/
variables
:
FE_REVIEW_BUCKET_URI
:
"
s3://iwoca-dev-public-frontend-bucket/${CI_PROJECT_PATH}/${CI_COMMIT_SHORT_SHA}/"
before_script
:
-
curl https://git.iwoca.co.uk/devops/ci/raw/3.0.2/scripts/setup-fe-review-app.sh > setup-fe-review-app.sh
-
chmod +x setup-fe-review-app.sh
This diff is collapsed.
Click to expand it.
scripts/setup-fe-review-app.sh
0 → 100755
+
25
−
0
View file @
5a5d23b3
#! /bin/bash
set
-e
build_path
=
"
${
1
}
"
# job variables
FE_REVIEW_BUCKET_URI
=
"
${
FE_REVIEW_BUCKET_URI
}
"
function
usage
{
echo
"Usage: setup-fe-review-app.sh <BUILD_PATH>"
echo
echo
"Sync BUILD_PATH to FE_REVIEW_BUCKET_URI."
echo
echo
"Example:"
echo
echo
" ./setup-fe-review-app.sh dist"
exit
1
}
if
[
-z
"
${
build_path
}
"
]
;
then
usage
fi
aws s3
sync
"
${
build_path
}
"
"
${
FE_REVIEW_BUCKET_URI
}
"
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