build: Adopt rotated GH token. #283
Merged
Travis CI / Travis CI - Pull Request
succeeded
Jul 10, 2023 in 1m 33s
Build Passed
The build passed, just like the previous build.
Details
This is a pull request build.
It is running a build against the merge commit, after merging #283 build: Adopt rotated GH token..
Any changes that have been made to the master branch before the build ran are also included.
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 | Node.js |
Operating System | Linux (Xenial) |
Node.js Version | 16 |
Build Configuration
{
"global": [
"GITHUB_TOKEN=\"${PUBLIC_GITHUB_TOKEN_2023_07_10}\""
],
"language": "node_js",
"os": [
"linux"
],
"dist": "xenial",
"node_js": [
"16"
],
"services": [
"docker"
],
"before_install": [
"echo \"$DOCKERHUB_TOKEN\" | docker login -u \"icdevops\" --password-stdin"
],
"script": [
"if [ \"${TRAVIS_PULL_REQUEST}\" != \"false\" ]; then npx audit-ci --config audit-ci.json; else npx audit-ci --config audit-ci.json || true; fi",
"npm run lint",
"npm run snifftest",
"if [[ \"${TRAVIS_TAG}\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+(-rc\\.[0-9]+)?$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
"docker build --rm -t \"quay.io/razee/clustersubscription:${TRAVIS_COMMIT}\" .",
"if [ -n \"${TRAVIS_TAG}\" ]; then docker tag quay.io/razee/clustersubscription:${TRAVIS_COMMIT} quay.io/razee/clustersubscription:${TRAVIS_TAG}; fi",
"docker images",
"./build/process-template.sh kubernetes/ClusterSubscription/resource.yaml >/tmp/resource.yaml"
],
"before_deploy": [
"docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io"
],
"deploy": [
{
"provider": "npm",
"email": "${NPMJS_EMAIL}",
"tag": "next",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+(-rc\\.[0-9]+)$"
]
},
"api_token": "${NPMJS_API_KEY}"
},
{
"provider": "script",
"script": "docker push \"quay.io/razee/clustersubscription:${TRAVIS_TAG}\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+(-rc\\.[0-9]+)?$"
]
}
},
{
"provider": "npm",
"email": "${NPMJS_EMAIL}",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
]
},
"api_token": "${NPMJS_API_KEY}"
},
{
"provider": "releases",
"file": [
"/tmp/resource.yaml"
],
"skip_cleanup": true,
"name": "${TRAVIS_TAG}",
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
]
},
"token": "${GITHUB_TOKEN}"
}
]
}
Loading