revert, pod securityContext (#29) #69
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
name: Release Charts | |
on: | |
push: | |
branches: | |
- "*" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Set lib version | |
run: | | |
LIB_VERSION=$(sed -n '/version/{s/version: //;p;}' charts/helm-apps/Chart.yaml) | |
sed -i 's/_FLANT_APPS_LIBRARY_VERSION_/'${LIB_VERSION}'/' charts/helm-apps/templates/_apps-version.tpl | |
- name: Install werf CLI | |
with: | |
channel: ea | |
uses: werf/actions/[email protected] | |
- name: Install Helm3 | |
run: | | |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | |
- name: Install Dyff | |
run: | | |
sudo snap install dyff | |
- name: Render | |
run: | | |
set -e | |
source $(werf ci-env github --as-file) | |
cd tests && werf render --dev --set "global._includes.apps-defaults.enabled=true" --env=prod | |
- name: Test render | |
run: | | |
set -e | |
source $(werf ci-env github --as-file) | |
cd tests && werf render --dev --set "global._includes.apps-defaults.enabled=true" --env=prod | sed '/werf.io\//d' > test_render_check.yaml | |
dyff between test_render.yaml test_render_check.yaml | tee /tmp/test_render_check | |
#check_tests=$(sed 1,7d /tmp/test_render_check | wc -l) | |
#if [ $check_tests -gt "7" ]; then exit 1; fi | |
- name: Run chart-releaser | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: helm/[email protected] | |
with: | |
charts_dir: charts | |
config: cr.yaml | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
# - name: Publish to CR | |
# env: | |
# CR_PAT: ${{ secrets.CR_PAT }} | |
# run: | | |
# echo $CR_PAT | helm registry login -u alvnukov --password-stdin ghcr.io | |
# find .cr-release-packages -mindepth 1 -maxdepth 1 -type f -name '*.tgz' -exec sh -c 'basename "$0"' '{}' \; | while read PACKAGE; do | |
# helm push .cr-release-packages/$PACKAGE oci://ghcr.io/${GITHUB_REPOSITORY} | |
# done |