ci: add helm package/push to Jenkinsfile

Signed-off-by: Daniel Richter <danielrichter@posteo.de>
This commit is contained in:
Daniel Richter 2023-11-12 22:31:35 +01:00
parent 9d052b310f
commit d3fe467f6f
No known key found for this signature in database
GPG key ID: 9911E0D935135C08
2 changed files with 17 additions and 5 deletions

14
Jenkinsfile vendored
View file

@ -27,7 +27,19 @@ pipeline {
} }
} }
} }
}
stage('Helm Push') {
steps {
script {
//TODO: Read chartVersion from Chart.yaml
def chartVersion = '1.0.0'
withCredentials([string(credentialsId: 'docker_hub_access_token', variable: 'DOCKER_HUB_ACCESS_TOKEN')]) {
sh "docker login --username frooodle --password $DOCKER_HUB_ACCESS_TOKEN"
sh "helm package chart/stirling-pdf"
sh "helm push stirling-pdf-chart-1.0.0.tgz oci://registry-1.docker.io/frooodle"
}
}
}
} }
} }
} }

View file

@ -9,7 +9,7 @@ keywords:
maintainers: maintainers:
- name: Frooodle - name: Frooodle
url: https://github.com/Frooodle/Stirling-PDF url: https://github.com/Frooodle/Stirling-PDF
name: stirling-pdf name: stirling-pdf-chart
sources: sources:
- https://github.com/Frooodle/Stirling-PDF - https://github.com/Frooodle/Stirling-PDF
version: 1.0.0 version: 1.0.0