Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
xpub
xpub-faraday
Commits
d9b7c8c8
Commit
d9b7c8c8
authored
6 years ago
by
Bogdan Cochior
Browse files
Options
Downloads
Patches
Plain Diff
ci(aws): fix issue with 2 stages with the same name
parent
31d4769d
No related branches found
No related tags found
1 merge request
!10
Sprint #12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-12
3 additions, 12 deletions
.gitlab-ci.yml
with
3 additions
and
12 deletions
.gitlab-ci.yml
+
3
−
12
View file @
d9b7c8c8
variables
:
IMAGE_TAG
:
latest
REV_BUCKET
:
faraday-rollback
CI_PROJECT_NAME
:
faraday-qa
CI_CLUSTER_NAME
:
faraday-cluster
CI_SERVICE_NAME
:
faraday-container-service
IMAGE_TAG
:
$CI_PROJECT_NAME:$CI_COMMIT_SHA
IMAGE_NAME
:
"
$REPOSITORY_URL/$IMAGE_TAG"
image
:
docker:stable
image
:
docker:stable
stages
:
stages
:
...
@@ -81,8 +72,8 @@ deploy:now:
...
@@ -81,8 +72,8 @@ deploy:now:
-
now --public --docker --token $NOW_TOKEN -e AWS_S3_ACCESS_KEY=$AWS_S3_ACCESS_KEY -e AWS_S3_SECRET_KEY=$AWS_S3_SECRET_KEY -e AWS_S3_REGION=$AWS_S3_REGION -e AWS_S3_BUCKET=$AWS_S3_BUCKET -e AWS_SES_SECRET_KEY=$AWS_SES_SECRET_KEY -e AWS_SES_ACCESS_KEY=$AWS_SES_ACCESS_KEY -e AWS_SES_REGION=$AWS_SES_REGION -e EMAIL_SENDER=$EMAIL_SENDER -e secret=$SECRET -e DATABASE=$DATABASE -e DB_USER=$DB_USER -e DB_PASS=$DB_PASS -e DB_HOST=$DB_HOST
-
now --public --docker --token $NOW_TOKEN -e AWS_S3_ACCESS_KEY=$AWS_S3_ACCESS_KEY -e AWS_S3_SECRET_KEY=$AWS_S3_SECRET_KEY -e AWS_S3_REGION=$AWS_S3_REGION -e AWS_S3_BUCKET=$AWS_S3_BUCKET -e AWS_SES_SECRET_KEY=$AWS_SES_SECRET_KEY -e AWS_SES_ACCESS_KEY=$AWS_SES_ACCESS_KEY -e AWS_SES_REGION=$AWS_SES_REGION -e EMAIL_SENDER=$EMAIL_SENDER -e secret=$SECRET -e DATABASE=$DATABASE -e DB_USER=$DB_USER -e DB_PASS=$DB_PASS -e DB_HOST=$DB_HOST
-
now alias $NOW_URL xpub-faraday-qa --token $NOW_TOKEN
-
now alias $NOW_URL xpub-faraday-qa --token $NOW_TOKEN
test
:
deploy:create-rollback
:
stage
:
test
stage
:
deploy
script
:
script
:
-
export AWS_REGION="eu-west-1"
-
export AWS_REGION="eu-west-1"
-
export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
-
export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
...
@@ -91,7 +82,7 @@ test:
...
@@ -91,7 +82,7 @@ test:
-
pip install awscli --upgrade --user
-
pip install awscli --upgrade --user
-
export PATH=~/.local/bin:/usr/bin/:$PATH
-
export PATH=~/.local/bin:/usr/bin/:$PATH
# Discover the ALB name
# Discover the ALB name
-
ALB=`aws elbv2 describe-load-balancers --region ${AWS_REGION} --names ${CI_
PROJECT
_NAME} | jq .LoadBalancers[0].DNSName`
-
ALB=`aws elbv2 describe-load-balancers --region ${AWS_REGION} --names ${CI_
ALB
_NAME} | jq .LoadBalancers[0].DNSName`
# Test Keepalive
# Test Keepalive
-
/usr/bin/curl --fail http://${ALB//'"'}/keepalive
-
/usr/bin/curl --fail http://${ALB//'"'}/keepalive
# IF Keepalive return 200...
# IF Keepalive return 200...
...
...
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