Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 834 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 834 Bytes

‼️ DEPRECATED AND ARCHIVED

common-build

Build and push images to DockerHub since DockerHub builds are slow.

Put this into a Jenkins Piepline Job

node {
  wrap([$class: 'HideSecretEnvVarsBuildWrapper']) {
    if (env.GWBT_REPO_FULL_NAME && env.GWBT_BRANCH != 'master' && env.GWBT_BRANCH != 'gh-pages' && env.GWBT_COMMIT_AFTER != "0000000000000000000000000000000000000000") {
        sh 'curl -H "Authorization: token ${SECRET_GITHUB_AUTH_TOKEN}" -H "Accept: application/vnd.github.v3.raw" -o Jenkinsfile -L https://api.github.com/repos/cloutainer/common-build/contents/Jenkinsfile'
        load('./Jenkinsfile')
    } else {
        echo "manual starts not allowed!"
    }
  }
}

And add the Webhook to the repo pointing to Jenkins