myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

Jenkinsfile (474B)


      1 @Library('in0rdr-jenkins-lib@master') _
      2 
      3 def updatecli = new Updatecli(this)
      4 
      5 // https://plugins.jenkins.io/hashicorp-vault-plugin/#user-content-usage-via-jenkinsfile
      6 def secrets = [
      7     [path: 'kv/jenkins-secrets/git', secretValues: [
      8         [envVar: 'GIT_USERNAME', vaultKey: 'username'],
      9         [envVar: 'GIT_PASSWORD', vaultKey: 'password']
     10     ]]
     11 ]
     12 
     13 node('podman'){
     14   checkout scm
     15   gitleaks()
     16 
     17   withVault([vaultSecrets: secrets]) {
     18     updatecli.run('apply')
     19   }
     20 }