Merge pull request #71 from UNINETTSigma2/rstudio-multi-storage #570
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build container images according to https://github.com/marketplace/actions/build-and-push-docker-images | |
name: ci | |
#on: [push, pull_request] | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
matrix: | |
# Generate matrix for linting (essentially locating all Dockerfile directories) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build | |
run: | | |
export HELM_VERSION="v3.2.4" | |
export KUBEVAL_VERSION="v0.16.1" | |
export CONFTEST_VERSION="0.28.1" | |
pip install yq jsonschema pyyaml | |
wget -q "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" | |
tar zxf helm-${HELM_VERSION}-linux-amd64.tar.gz | |
mkdir bin | |
mv linux-amd64/helm ./bin/helm | |
wget -q "https://github.com/instrumenta/kubeval/releases/download/${KUBEVAL_VERSION}/kubeval-linux-amd64.tar.gz" | |
tar zxf kubeval-linux-amd64.tar.gz | |
mv kubeval ./bin/kubeval | |
wget -q "https://github.com/instrumenta/conftest/releases/download/v${CONFTEST_VERSION}/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz" | |
tar zxf conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz | |
mv conftest ./bin/conftest | |
export PATH=$PWD/bin:$PATH | |
helm version | |
kubeval --version | |
conftest --version | |
echo "Running update chart repo" | |
./build/update-chart-repo.sh | |
echo "Running push" | |
./build/push.sh | |