package updates #471
Merged
package updates #471
Travis CI / Travis CI - Branch
succeeded
Jun 4, 2024 in 5m 40s
Build Passed
The build passed, just like the previous build.
Details
This is a normal build for the auditree branch. You should be able to reproduce it by checking out the branch locally.
Jobs and Stages
This build has four jobs, running in two sequential stages.
Stage 1: building images
This stage passed.
Job | Node.js | ENV | OS | State |
---|---|---|---|---|
2144.1 building amd64 image | 18 | GITHUB_TOKEN="${PUBLIC_GITHUB_TOKEN_2023_07_10}" | Linux | passed |
2144.2 building ppc64le image | 18 | GITHUB_TOKEN="${PUBLIC_GITHUB_TOKEN_2023_07_10}" | Linux | passed |
2144.3 building s390x image | 18 | GITHUB_TOKEN="${PUBLIC_GITHUB_TOKEN_2023_07_10}" | Linux | passed |
Stage 2: publish multi-arch image, npm & github release
This stage passed.
Job | Node.js | ENV | OS | State |
---|---|---|---|---|
2144.4 | 18 | GITHUB_TOKEN="${PUBLIC_GITHUB_TOKEN_2023_07_10}" | Linux | passed |
Build Configuration
Build Option | Setting |
---|---|
Language | Node.js |
Operating System | Linux (Focal) |
Node.js Version | 18 |
Build Configuration
{
"language": "node_js",
"os": [
"linux"
],
"dist": "focal",
"node_js": [
"18"
],
"services": [
"docker"
],
"env": [
"global={:GITHUB_TOKEN=>\"\\\"${PUBLIC_GITHUB_TOKEN_2023_07_10}\\\"\"}={:NODE_OPTIONS=>\"\\\"--dns-result-order=ipv4first\\\"\"}"
],
"before_install": [
"echo \"$DOCKERHUB_TOKEN\" | docker login -u \"icdevops\" --password-stdin",
"export WS_APIKEY=${WS_APIKEY}",
"export WS_USERKEY=${WS_USERKEY}",
"export WS_PRODUCTNAME=${WS_PRODUCTNAME}",
"export WS_PROJECTNAME=WatchKeeper",
"export WS_WSS_URL=https://ibmets.whitesourcesoftware.com/agent",
"./build/download-kubelint.sh"
],
"jobs": {
"include": [
{
"stage": "building images",
"name": "building amd64 image",
"arch": "amd64",
"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 test",
"if [[ \"${TRAVIS_TAG}\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
"docker build --rm -t \"quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-amd64\" .",
"if [ -n \"${TRAVIS_TAG}\" ]; then docker tag quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-amd64 quay.io/razee/watch-keeper:${TRAVIS_TAG}-amd64; fi",
"docker images"
],
"before_deploy": [
"docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io"
],
"deploy": [
{
"provider": "script",
"script": "docker push \"quay.io/razee/watch-keeper:${TRAVIS_TAG}-amd64\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{3}$"
]
}
},
{
"provider": "script",
"script": "docker push \"quay.io/razee/watch-keeper:${TRAVIS_TAG}-amd64\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
]
}
}
]
},
{
"name": "building ppc64le image",
"arch": "ppc64le",
"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 test",
"if [[ \"${TRAVIS_TAG}\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
"docker build --rm -t \"quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-ppc64le\" .",
"if [ -n \"${TRAVIS_TAG}\" ]; then docker tag quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-ppc64le quay.io/razee/watch-keeper:${TRAVIS_TAG}-ppc64le; fi",
"docker images"
],
"before_deploy": [
"docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io"
],
"deploy": [
{
"provider": "script",
"script": "docker push \"quay.io/razee/watch-keeper:${TRAVIS_TAG}-ppc64le\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{3}$"
]
}
},
{
"provider": "script",
"script": "docker push \"quay.io/razee/watch-keeper:${TRAVIS_TAG}-ppc64le\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
]
}
}
]
},
{
"name": "building s390x image",
"arch": "s390x",
"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 test",
"if [[ \"${TRAVIS_TAG}\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
"docker build --rm -t \"quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-s390x\" .",
"if [ -n \"${TRAVIS_TAG}\" ]; then docker tag quay.io/razee/watch-keeper:${TRAVIS_COMMIT}-s390x quay.io/razee/watch-keeper:${TRAVIS_TAG}-s390x; fi",
"docker images"
],
"before_deploy": [
"docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io"
],
"deploy": [
{
"provider": "script",
"script": "docker push \"quay.io/razee/watch-keeper:${TRAVIS_TAG}-s390x\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{3}$"
]
}
},
{
"provider": "script",
"script": "docker push \"quay.io/razee/watch-keeper:${TRAVIS_TAG}-s390x\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
]
}
}
]
},
{
"stage": "publish multi-arch image, npm & github release",
"arch": "amd64",
"script": [
"if [[ $TRAVIS_TAG =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
"./build/process-template.sh kubernetes/watch-keeper/resource.yaml >/tmp/resource.yaml",
"./build/process-template.sh kubernetes/watch-keeper/rbac.yaml >/tmp/rbac.yaml",
"kubelint /tmp/resource.yaml",
"kubelint /tmp/rbac.yaml",
"export DOCKER_CLI_EXPERIMENTAL=enabled",
"sudo chown -R $USER:$USER /etc/docker/",
"if [ -n \"${TRAVIS_TAG}\" ]; then\n docker manifest create quay.io/razee/watch-keeper:${TRAVIS_TAG} \\\n quay.io/razee/watch-keeper:${TRAVIS_TAG}-amd64 \\\n quay.io/razee/watch-keeper:${TRAVIS_TAG}-ppc64le \\\n quay.io/razee/watch-keeper:${TRAVIS_TAG}-s390x\nfi\n",
"if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar; java -jar wss-unified-agent.jar -d . || echo \"UA Scan Error occurred\"; fi"
],
"before_deploy": [
"docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io",
"npm install -g npm@9"
],
"deploy": [
{
"provider": "script",
"script": "docker manifest push \"quay.io/razee/watch-keeper:${TRAVIS_TAG}\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{3}$"
]
}
},
{
"provider": "script",
"script": "docker manifest push \"quay.io/razee/watch-keeper:${TRAVIS_TAG}\"",
"skip_cleanup": true,
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
]
}
},
{
"provider": "releases",
"file": [
"/tmp/resource.yaml",
"/tmp/rbac.yaml"
],
"skip_cleanup": true,
"name": "${TRAVIS_TAG}",
"on": {
"tags": true,
"condition": [
"${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
]
},
"token": "${GITHUB_TOKEN}"
},
{
"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}"
}
]
}
]
}
}
Loading