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

add kubelinter #415

Merged
merged 5 commits into from
Feb 14, 2024

move kubelint download

5b4e473
Select commit
Loading
Failed to load commit list.
Merged

add kubelinter #415

move kubelint download
5b4e473
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Feb 14, 2024 in 1m 26s

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 #415 add kubelinter.
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 (Focal)
Node.js Version 18
Build Configuration
{
  "language": "node_js",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "node_js": [
    "18"
  ],
  "services": [
    "docker"
  ],
  "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=FeatureFlagSetLD",
    "export WS_WSS_URL=https://ibmets.whitesourcesoftware.com/agent",
    "./build/download-kubelint.sh"
  ],
  "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",
    "docker build --rm -t \"quay.io/razee/featureflagsetld:${TRAVIS_COMMIT}\" .",
    "if [ -n \"${TRAVIS_TAG}\" ]; then docker tag quay.io/razee/featureflagsetld:${TRAVIS_COMMIT} quay.io/razee/featureflagsetld:${TRAVIS_TAG}; fi",
    "docker images",
    "./build/process-template.sh kubernetes/FeatureFlagSetLD/resource.yaml >/tmp/resource.yaml",
    "kubelint /tmp/resource.yaml",
    "if [[ \"${TRAVIS_TAG}\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
    "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 push \"quay.io/razee/featureflagsetld:${TRAVIS_TAG}\"",
      "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/featureflagsetld:${TRAVIS_TAG}\"",
      "skip_cleanup": true,
      "on": {
        "tags": true,
        "condition": [
          "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
        ]
      }
    },
    {
      "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}"
    },
    {
      "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}"
    }
  ]
}