Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: testing target hiding snippet #142

Closed
wants to merge 2 commits into from

moving target hiding script before nextjs onload

014d293
Select commit
Loading
Failed to load commit list.
Closed

WIP: testing target hiding snippet #142

moving target hiding script before nextjs onload
014d293
Select commit
Loading
Failed to load commit list.
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"
        ]
      }
    ]
  }
}