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 Helm | |
jobs: | |
deploy_operator: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to push chart release and create a release (helm/chart-releaser-action) | |
id-token: write # needed for signing | |
pull-requests: write # needed to create pull-request | |
name: Deploy Helm chart to GitHub pages | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install operator-sdk | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl tar | |
export OPERATOR_SDK_VERSION=v1.39.0 | |
curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}/operator-sdk_linux_amd64 | |
chmod +x operator-sdk_linux_amd64 | |
sudo mv operator-sdk_linux_amd64 /usr/local/bin/operator-sdk | |
- name: Create Helm Operator image | |
run: | | |
mkdir deploy/swi-k8s-collector-operator | |
cd deploy/swi-k8s-collector-operator | |
operator-sdk init --plugins=helm --domain solarwinds.com | |
operator-sdk create api --helm-chart=../helm | |
make docker-build=test:0.1 |