From 43e91b623905b0e1e4bfd39d8a38f7bc10239abc Mon Sep 17 00:00:00 2001 From: Don Naro Date: Tue, 6 Aug 2024 19:02:26 +0100 Subject: [PATCH] rm Helm chart workflows --- .github/workflows/ci.yaml | 43 ------------------------------ .github/workflows/promote.yaml | 11 -------- .github/workflows/publish-helm.yml | 26 ------------------ 3 files changed, 80 deletions(-) delete mode 100644 .github/workflows/publish-helm.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 52844dd7..c7dda08f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -50,49 +50,6 @@ jobs: with: name: awx_operator_molecule_test path: ${{ env.DEBUG_OUTPUT_DIR }} - helm: - runs-on: ubuntu-latest - name: helm - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Create k8s Kind Cluster - uses: helm/kind-action@v1.10.0 - - - name: Build operator image and load into kind - run: | - IMG=awx-operator-ci make docker-build - kind load docker-image --name chart-testing awx-operator-ci - - - name: Patch pull policy for tests - run: | - kustomize edit add patch --path ../testing/pull_policy/Never.yaml - working-directory: config/default - - - name: Build and lint helm chart - run: | - IMG=awx-operator-ci make helm-chart - helm lint ./charts/awx-operator - - - name: Install kubeval - run: | - mkdir tmp && cd tmp - wget https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz - tar xf kubeval-linux-amd64.tar.gz - sudo cp kubeval /usr/local/bin - working-directory: ./charts - - - name: Run kubeval - run: | - helm template -n awx awx-operator > tmp/test.yaml - kubeval --strict --force-color --ignore-missing-schemas tmp/test.yaml - working-directory: ./charts - - - name: Install helm chart - run: | - helm install --wait my-awx-operator --namespace awx --create-namespace ./charts/awx-operator no-log: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index 407ad3dd..f154f880 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -70,14 +70,3 @@ jobs: docker buildx imagetools create \ ghcr.io/${{ github.repository }}:${{ env.TAG_NAME }} \ --tag ${{ env.QUAY_REGISTRY }}/awx-operator:latest - - - - name: Release Helm chart - run: | - ansible-playbook ansible/helm-release.yml -v \ - -e operator_image=${{ env.QUAY_REGISTRY }}/awx-operator \ - -e chart_owner=${{ github.repository_owner }} \ - -e tag=${{ env.TAG_NAME }} \ - -e gh_token=${{ secrets.GITHUB_TOKEN }} \ - -e gh_user=${{ github.actor }} \ - -e repo_type=https diff --git a/.github/workflows/publish-helm.yml b/.github/workflows/publish-helm.yml deleted file mode 100644 index 6edbf08c..00000000 --- a/.github/workflows/publish-helm.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Re-publish helm chart -on: - workflow_dispatch: - inputs: - tag: - description: 'Release tag' - required: true - type: string -jobs: - promote: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - depth: 0 - - - name: Release Helm chart - run: | - ansible-playbook ansible/helm-release.yml -v \ - -e operator_image=quay.io/${{ github.repository }} \ - -e chart_owner=${{ github.repository_owner }} \ - -e tag=${{ inputs.tag }} \ - -e gh_token=${{ secrets.GITHUB_TOKEN }} \ - -e gh_user=${{ github.actor }} \ - -e repo_type=https