helm chart deploy run step

This commit is contained in:
Samuel Beaulieu 2022-04-26 15:29:44 -05:00
parent 2f73e44b7c
commit da6634ee64
No known key found for this signature in database
GPG key ID: 12030F74136D0F34

View file

@ -2,59 +2,67 @@
name: Release Helm charts name: Release Helm charts
on: on:
push: push:
# workflow_dispatch: workflow_dispatch:
# inputs: inputs:
# tag: tag:
# description: 'Tag in semver format' description: 'Tag in semver format'
# required: true required: true
jobs: jobs:
container_prod_all_providers: container_prod_all_providers:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 # Checking out the repo - uses: actions/checkout@v2
with:
fetch-depth: 0 # ct list-changed below needs this
- uses: azure/setup-helm@v1 - uses: azure/setup-helm@v1
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.7 python-version: 3.7
- name: Set up chart-testing - name: Set up chart-testing
uses: helm/chart-testing-action@v2.1.0 uses: helm/chart-testing-action@v2.1.0
# - name: Run chart-testing (list-changed) - name: Run chart-testing (list-changed)
# id: list-changed id: list-changed
# run: | run: |
# changed=$(ct list-changed) changed=$(ct list-changed --chart-dirs helm-charts --target-branch main)
# if [[ -n "$changed" ]]; then if [[ -n "$changed" ]]; then
# echo "::set-output name=changed::true" echo "::set-output name=changed::true"
# fi fi
- name: Run chart-testing (lint) - name: Run chart-testing (lint)
run: ct lint --chart-dirs helm-charts --all --validate-maintainers=false --chart-repos bitnami=https://charts.bitnami.com/bitnami run: ct lint --chart-dirs helm-charts --all --validate-maintainers=false --chart-repos bitnami=https://charts.bitnami.com/bitnami
# - name: Package charts - name: Package charts
# run: | run: |
# set -e set -e
# cd docs/ cd docs/
# helm package ../helm-charts/* helm package ../helm-charts/*
# - name: Generate Release Body helm repo index --url https://puppetlabs.github.io/vmpooler-deployment/ .
# env: - uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
# RELEASE_BODY_FILE: "${{ github.event.inputs.tag }}-prod-all-providers-release-body.md" with:
# run: | add: docs
# echo "## Components" > ${RELEASE_BODY_FILE} message: release helm-chart version ${{ github.event.inputs.tag }}
# echo "" >> ${RELEASE_BODY_FILE} - name: Generate Release Body
# echo "This release includes the following:" >> ${RELEASE_BODY_FILE} env:
# echo "" >> ${RELEASE_BODY_FILE} RELEASE_BODY_FILE: "${{ github.event.inputs.tag }}-prod-all-providers-release-body.md"
# echo "### Source image" >> ${RELEASE_BODY_FILE} run: |
# echo "" >> ${RELEASE_BODY_FILE} echo "#Components" > ${RELEASE_BODY_FILE}
# echo "- $(grep ^FROM ./docker/prod-all-providers/Dockerfile |cut -d ' ' -f2) + OS updates" >> ${RELEASE_BODY_FILE} echo "" >> ${RELEASE_BODY_FILE}
# echo "" >> ${RELEASE_BODY_FILE} echo "This release includes the following:" >> ${RELEASE_BODY_FILE}
# echo "### Gems" >> ${RELEASE_BODY_FILE} echo "" >> ${RELEASE_BODY_FILE}
# echo "" >> ${RELEASE_BODY_FILE} echo "##Source image" >> ${RELEASE_BODY_FILE}
# echo "$(grep -e 'vmpooler ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE} echo "" >> ${RELEASE_BODY_FILE}
# echo "$(grep -e 'vmpooler-provider-.* ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE} echo "- $(grep ^FROM ./docker/prod-all-providers/Dockerfile |cut -d ' ' -f2) + OS updates" >> ${RELEASE_BODY_FILE}
# - name: Tag Release echo "" >> ${RELEASE_BODY_FILE}
# uses: ncipollo/release-action@v1 echo "##Gems" >> ${RELEASE_BODY_FILE}
# with: echo "" >> ${RELEASE_BODY_FILE}
# tag: ${{ github.event.inputs.tag }}-prod-all-providers echo "$(grep -e 'vmpooler ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE}
# token: ${{ secrets.GITHUB_TOKEN }} echo "$(grep -e 'vmpooler-provider-.* ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE}
# draft: false echo "${RELEASE_BODY_FILE}"
# prerelease: false - name: Tag Release
# bodyFile: ${{ github.event.inputs.tag }}-prod-all-providers-release-body.md uses: ncipollo/release-action@v1
# generateReleaseNotes: true with:
tag: ${{ github.event.inputs.tag }}-prod-all-providers
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: false
bodyFile: ${{ github.event.inputs.tag }}-prod-all-providers-release-body.md
generateReleaseNotes: true