Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EBI-Framework
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ebiwd
EBI-Framework
Commits
6fa4a00f
Commit
6fa4a00f
authored
5 years ago
by
Peter Walter
Browse files
Options
Downloads
Patches
Plain Diff
deploy only to aws
parent
3e58d87a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#45848
passed with stage
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-43
1 addition, 43 deletions
.gitlab-ci.yml
with
1 addition
and
43 deletions
.gitlab-ci.yml
+
1
−
43
View file @
6fa4a00f
image
:
netroby/alpine-rsync
#project specific variables can be defines here, or overridden project settings
variables
:
SERVER_DEV
:
ebi-cli.ebi.ac.uk
S3_BUCKET_DEV
:
origin.dev.ebi.emblstatic.net
SCRIPT_DEV
:
~/bin/update-ebi-framework
DEV_URL
:
http://wwwdev.ebi.ac.uk/web_guidelines/EBI-Framework
SERVER_PROD
:
ebi-cli.ebi.ac.uk
S3_BUCKET_PROD
:
origin.ebi.emblstatic.net
SCRIPT_PROD
:
~/bin/update-ebi-framework-prod
PROD_URL
:
http://www.ebi.ac.uk/web_guidelines/EBI-Framework
# do not define here, put in project variables
SSH_USER
:
username
SSH_KEY
:
secret-key
AWS_KEY
:
key
AWS_SECRET
:
secret-key
#setup ssh keys
.deploy_setup
:
&deploy_setup
tags
:
-
docker
before_script
:
-
mkdir ~/.ssh
-
echo -e "${SSH_KEY}" >> ~/.ssh/${SSH_USER} && chmod 400 ~/.ssh/${SSH_USER}
-
echo -e "Host *\n\tIdentityFile ~/.ssh/%r\n\tStrictHostKeyChecking no" >> ~/.ssh/config
stages
:
-
deploy
deploy_dev
:
<<
:
*deploy_setup
stage
:
deploy
script
:
-
ssh -t ${SSH_USER}@${SERVER_DEV} ${SCRIPT_DEV}
only
:
-
branches
environment
:
name
:
dev
url
:
${DEV_URL}
deploy_live
:
<<
:
*deploy_setup
stage
:
deploy
script
:
-
ssh -t ${SSH_USER}@${SERVER_PROD} ${SCRIPT_PROD}
only
:
-
tags
environment
:
name
:
live
url
:
${LIVE_URL}
deploy_aws_dev
:
image
:
ebiwd/alpine-ssh
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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