
This patch set adds a zuul job that allows post publish of job tarballs. Signed-off-by: Tin Lam <tin@irrational.io> Change-Id: I95d0bfefe20e69a22dbe8ee76928edb90a5db8ae
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
---
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- hosts: all
|
|
tasks:
|
|
- name: install helm3
|
|
become_user: root
|
|
shell: |
|
|
set -ex
|
|
TMP_DIR=$(mktemp -d)
|
|
if [[ -z ${HELM_VERSION} ]]; then
|
|
HELM_VERSION="$(curl -Ls https://github.com/helm/helm/releases | grep 'href="/helm/helm/releases/tag/v3.[0-9]*.[0-9]*\"' | grep -v no-underline | head -n 1 | cut -d '"' -f 2 | awk '{n=split($NF,a,"/");print a[n]}' | awk 'a !~ $0{print}; {a=$0}')"
|
|
fi
|
|
curl -sSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar -zxv --strip-components=1 -C ${TMP_DIR}
|
|
sudo mv ${TMP_DIR}/helm /usr/bin/helm
|
|
rm -rf ${TMP_DIR}
|
|
environment:
|
|
HELM_VERSION: ""
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: make all
|
|
make:
|
|
chdir: "{{ zuul.project.src_dir }}/charts"
|
|
target: all
|
|
...
|