mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 19:40:35 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7d72ba4db | ||
|
|
331ed1ff0d |
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
name: Release Charts
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
git config user.name "$GITHUB_ACTOR"
|
||||||
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
|
|
||||||
|
- name: Run chart-releaser
|
||||||
|
uses: helm/chart-releaser-action@v1
|
||||||
|
env:
|
||||||
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
-47
@@ -1,47 +0,0 @@
|
|||||||
language: python
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- HELM_URL=https://storage.googleapis.com/kubernetes-helm
|
|
||||||
- HELM_TGZ=helm-v2.14.3-linux-amd64.tar.gz
|
|
||||||
- TARGET_BR=gh-pages
|
|
||||||
- GH_URL=https://submariner-io.github.io/submariner-charts/charts
|
|
||||||
- CHARTS_DIR=charts
|
|
||||||
- YAMLLINT_VERSION=1.17.0
|
|
||||||
- HELM_FLAGS='--set submariner.serviceDiscovery=true,serviceAccounts.globalnet.create=true,globalCidr="169.254.0.0/16"'
|
|
||||||
|
|
||||||
install:
|
|
||||||
- wget -q ${HELM_URL}/${HELM_TGZ}
|
|
||||||
- tar xzfv ${HELM_TGZ}
|
|
||||||
- PATH=`pwd`/linux-amd64/:$PATH
|
|
||||||
- helm init --client-only
|
|
||||||
- sudo pip install yamllint=="${YAMLLINT_VERSION}"
|
|
||||||
|
|
||||||
script:
|
|
||||||
- for dir in submariner submariner-k8s-broker; do helm lint $dir $HELM_FLAGS; done
|
|
||||||
- yamllint -c .yamllint.yml -s $(find . -type f -name "Chart.yaml")
|
|
||||||
- yamllint -c .yamllint.yml -s $(find . -type f -name "values.yaml")
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- >
|
|
||||||
if [ $TRAVIS_BRANCH = 'master' ] && [ $TRAVIS_PULL_REQUEST = 'false' ]; then
|
|
||||||
set -e
|
|
||||||
for dir in submariner submariner-k8s-broker; do
|
|
||||||
helm dep update $dir
|
|
||||||
helm package $dir
|
|
||||||
done
|
|
||||||
REPO_URL=`git config remote.origin.url`
|
|
||||||
git clone ${REPO_URL} out && cd out && git checkout gh-pages && mkdir -p ${CHARTS_DIR}
|
|
||||||
cp -f ../submariner-*.tgz ${CHARTS_DIR}/
|
|
||||||
if [ -f charts/index.yaml ]; then
|
|
||||||
helm repo index ${CHARTS_DIR} --url ${GH_URL} --merge index.yaml
|
|
||||||
else
|
|
||||||
helm repo index ${CHARTS_DIR} --url ${GH_URL}
|
|
||||||
fi
|
|
||||||
git config user.name "Travis CI"
|
|
||||||
git config user.email "travis@travis-ci.org"
|
|
||||||
git add -f ${CHARTS_DIR}/*
|
|
||||||
git commit -m "Travis build: $TRAVIS_BUILD_NUMBER"
|
|
||||||
git remote add origin-pages https://${GH_TOKEN}@github.com/submariner-io/submariner-charts.git > /dev/null 2>&1
|
|
||||||
git push --quiet -f -u origin-pages gh-pages
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user