mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
44 lines
1015 B
YAML
44 lines
1015 B
YAML
---
|
|
name: helm-release
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
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 "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@v1
|
|
with:
|
|
version: v3.7.1
|
|
|
|
- name: Create Helm chart
|
|
run: |
|
|
echo VERSION: $VERSION
|
|
make helm-chart
|
|
env:
|
|
VERSION: ${{ github.ref_name }}
|
|
|
|
# Reinventing the wheel if/until https://github.com/helm/chart-releaser-action/pull/96 is merged
|
|
- name: Release Helm chart
|
|
run: |
|
|
echo VERSION: $VERSION
|
|
make helm-release
|
|
env:
|
|
VERSION: ${{ github.ref_name }}
|
|
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GH_REPO_OWNER: ${{ github.repository_owner }}
|