Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

5.8.1

5.8.1 #18

Workflow file for this run

name: Release Charts
on:
release:
types: [ published ]
jobs:
release:
runs-on: ubuntu-latest
environment: master
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: Retrieve and verify version
run: |
CHART_VERSION=$(grep -m 1 '^version:' charts/testops/Chart.yaml | sed 's/version:[[:space:]]*//')
if [ "${{ github.event.release.tag_name }}" != "${CHART_VERSION}" ]; then
echo "Version mismatch: release tag ${{ github.event.release.tag_name }} does not match Chart.yaml version ${CHART_VERSION}"
exit 1
fi
echo "CHART_VERSION=$CHART_VERSION" >> $GITHUB_ENV
- name: Helm publish
uses: qameta/artifactory-publisher@v1
with:
endpoint: https://dl.qameta.io/artifactory/helm/
username: ${{ secrets.ARTIFACTORY_USER }}
password: ${{ secrets.ARTIFACTORY_PASS }}
repoName: testops
chart: charts/testops
version: "${CHART_VERSION}"