mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 14:57:22 +08:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: 2
|
|
jobs:
|
|
package:
|
|
working_directory: /workdir
|
|
docker:
|
|
- image: docker:17.06.0-ce-git
|
|
environment:
|
|
CHART_URL: https://charts.bitnami.com
|
|
|
|
steps:
|
|
- checkout
|
|
- setup_remote_docker:
|
|
version: 17.06.0-ce
|
|
- run:
|
|
name: Upgrade system packages (workaround - https://github.com/docker-library/docker/issues/72)
|
|
command: |
|
|
apk upgrade --no-cache
|
|
- run:
|
|
name: Install dependencies
|
|
command: |
|
|
apk add --no-cache bash curl
|
|
- run:
|
|
name: Package charts
|
|
command: |
|
|
curl -sL https://raw.githubusercontent.com/bitnami/test-infra/master/circle/helm-package-charts.sh | bash -
|
|
- deploy:
|
|
name: Publish charts
|
|
command: |
|
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
curl -sL https://raw.githubusercontent.com/bitnami/test-infra/master/circle/helm-publish-charts.sh | bash -
|
|
fi
|
|
|
|
workflows:
|
|
version: 2
|
|
package-and-publish:
|
|
jobs:
|
|
- package:
|
|
filters:
|
|
branches:
|
|
only: /.*/
|