custom build args/secrets #12
Open
Travis CI / Travis CI - Branch
succeeded
Aug 27, 2024 in 31m 9s
Build Passed
The build passed, just like the previous build.
Details
This is a normal build for the ga-tbt112-dockerargs-prod 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 (Focal) |
Build Configuration
{
"language": "ruby",
"os": [
"linux"
],
"dist": "focal",
"env": [
"jobs={:PROJECT=>\"production\", :K8S_APP_REPO=>\"travis-ci/travis-web\", :K8S_APP_REPO_COMMIT=>\"da_test_240822\", :DEPLOYMENT_NAME=>\"travis-pro-web\", :CLOUDSDK_CORE_DISABLE_PROMPTS=>\"1\"} global={:CLOUDSDK_CORE_DISABLE_PROMPTS=>\"1\"}"
],
"vm": {
"size": "large"
},
"services": [
"docker"
],
"before_install": [
"mkdir -p /home/travis/.snaps",
"echo \"deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main\" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list",
"curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -",
"sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7123CB760FF18869",
"sudo rm -rf /etc/apt/sources.list.d/mongodb-4.4.list",
"sudo apt-get update && sudo apt-get install -y google-cloud-sdk google-cloud-sdk-gke-gcloud-auth-plugin",
"sudo snap set system refresh.hold=\"$(date --date=tomorrow +%Y-%m-%dT%H:%M:%S%:z)\"",
"sudo snap get system refresh.hold",
"wget -q -i ${TRAVIS_BUILD_DIR}/snap.list -P /home/travis/.snaps",
"cd /home/travis/.snaps && sudo snap ack core_8935.assert && sudo snap ack core18_1705.assert && sudo snap ack fluxctl_70.assert && sudo snap ack google-cloud-sdk_128.assert && sudo snap ack kubectl_1506.assert && sudo snap ack vault_1822.assert",
"cd /home/travis/.snaps ; for snap in core core18 ; do ls $snap*.snap > /dev/null 2>&1 || snap download $snap ; sudo snap install --dangerous $snap*.snap ; done ; cd ${TRAVIS_BUILD_DIR}",
"cd /home/travis/.snaps ; for snap in google-cloud-sdk fluxctl kubectl vault ; do ls $snap*.snap > /dev/null 2>&1 || snap download $snap ; sudo snap install --dangerous $snap*.snap --classic ; done ; cd ${TRAVIS_BUILD_DIR}",
"export PATH=$PATH:/snap/google-cloud-sdk/current/bin",
"vault login \"${VAULT_TOKEN}\"",
"docker login --username rarek --password ${DOCKER_HUB_TOKEN}",
"vault kv get -field=secret \"gcp/gcp-k8s-sa-${PROJECT}\" > client-secret.json;",
"vault kv get -field=secret \"gcp/k8s-deploy-ssh-key\" > /tmp/ssh_key",
"curl -sLO http://ppa.launchpad.net/rmescandon/yq/ubuntu/pool/main/y/yq/yq_3.1-2_amd64.deb && sudo dpkg -i yq_3.1-2_amd64.deb && rm -f yq_3.1-2_amd64.deb;",
"if [[ \"${PROJECT}\" == \"production\" ]]; then export GCP_ZONE=\"${GCP_ZONE:-us-east1}\"; export GKE_CLUSTER=\"${GKE_CLUSTER:-travis-ci-services}\"; APPS_CLUSTER=$(yq r ./apps.yaml ${DEPLOYMENT_NAME}-${PROJECT}.cluster); if [[ \"xx${APPS_CLUSTER}\" != \"xx\" ]]; then GKE_CLUSTER=${APPS_CLUSTER}; fi; export GCE_PROJECT=\"travis-ci-prod-services-1\"; else export GCP_ZONE=\"${GCP_ZONE:-us-east4}\"; export GKE_CLUSTER=\"${GKE_CLUSTER:-travis-ci-services-1}\"; export GCE_PROJECT=\"travis-ci-staging-services-1\"; fi",
"gcloud -q auth activate-service-account --key-file \"${TRAVIS_BUILD_DIR}/client-secret.json\";",
"eval \"$(ssh-agent -s)\"",
"chmod 600 /tmp/ssh_key",
"ssh-add /tmp/ssh_key",
"gcloud -q config set project ${GCE_PROJECT}",
"gcloud -q config set compute/zone ${GCP_ZONE}",
"gcloud container clusters get-credentials ${GKE_CLUSTER}",
"gcloud auth configure-docker"
],
"install": [
"true"
],
"jobs": {
"include": [
{
"stage": ":ship: it",
"script": [
"make ship"
]
}
]
}
}
Loading