WIP: testing target hiding snippet #142
Closed
Travis CI / Travis CI - Branch
succeeded
May 20, 2024 in 4m 27s
Build Passed
The build passed, just like the previous build.
Details
This is a normal build for the adobe-target-test branch. You should be able to reproduce it by checking out the branch locally.
Jobs and Stages
This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.
Build Configuration
Build Option | Setting |
---|---|
Language | Ruby |
Operating System | Linux (Xenial) |
Build Configuration
{
"language": "ruby",
"os": [
"linux"
],
"dist": "xenial",
"services": [
"docker"
],
"branches": {
"only": [
"qa",
"production",
"adobe-target-test"
]
},
"env": [
"global={:AWS_DEFAULT_REGION=>\"us-east-1\"}={:LOCAL_TAG_NAME=>\"dc-frontend:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER\"}=AWS_ACCESS_KEY_ID_QA=[secure]=AWS_SECRET_ACCESS_KEY_QA=[secure]=AWS_ACCESS_KEY_ID_PRODUCTION=[secure]=AWS_ACCESS_KEY_ID_PRODUCTION=[secure]=AWS_SECRET_ACCESS_KEY_PRODUCTION=[secure]=NEW_RELIC_LICENSE_KEY=[secure]"
],
"jobs": {
"include": [
{
"stage": "deploy QA",
"if": "(branch = adobe-target-test)",
"env": [
{
"ECR_URL": "685731035297.dkr.ecr.us-east-1.amazonaws.com/dc-frontend:solrtest-latest"
},
{
"AWS_ACCESS_KEY_ID": "$AWS_ACCESS_KEY_ID_QA"
},
{
"AWS_SECRET_ACCESS_KEY": "$AWS_SECRET_ACCESS_KEY_QA"
},
{
"CLUSTER_NAME": "dc-frontend-qa"
},
{
"SERVICE_NAME": "dc-frontend-qa"
},
{
"APP_ENV": "qa"
}
],
"install": [
"pip install --user awscli"
],
"script": [
"eval $(aws ecr get-login --no-include-email)",
"docker build --build-arg APP_ENV=\"$APP_ENV\" --build-arg NEW_RELIC_LICENSE_KEY=\"$NEW_RELIC_LICENSE_KEY\" --tag \"$LOCAL_TAG_NAME\" .",
"docker tag \"$LOCAL_TAG_NAME\" \"$ECR_URL\";",
"docker push \"$ECR_URL\";",
"aws ecs update-service --cluster $CLUSTER_NAME --service $SERVICE_NAME --force-new-deployment"
]
},
{
"stage": "deploy production",
"if": "(branch = production) AND (type != pull_request)",
"env": [
{
"ECR_URL": "557492996044.dkr.ecr.us-east-1.amazonaws.com/dc-frontend:latest"
},
{
"AWS_ACCESS_KEY_ID": "$AWS_ACCESS_KEY_ID_PRODUCTION"
},
{
"AWS_SECRET_ACCESS_KEY": "$AWS_SECRET_ACCESS_KEY_PRODUCTION"
},
{
"CLUSTER_NAME": "new-digitalcollections"
},
{
"SERVICE_NAME": "new-digitalcollections"
},
{
"APP_ENV": "production"
}
],
"install": [
"pip install --user awscli"
],
"script": [
"eval $(aws ecr get-login --no-include-email)",
"docker build --build-arg APP_ENV=\"$APP_ENV\" --build-arg NEW_RELIC_LICENSE_KEY=\"$NEW_RELIC_LICENSE_KEY\" --tag \"$LOCAL_TAG_NAME\" .",
"docker tag \"$LOCAL_TAG_NAME\" \"$ECR_URL\";",
"docker push \"$ECR_URL\";",
"aws ecs update-service --cluster $CLUSTER_NAME --service $SERVICE_NAME --force-new-deployment"
]
}
]
}
}
Loading