diff --git a/.github/actions/kurl-create-installer/action.yml b/.github/actions/kurl-create-installer/action.yml deleted file mode 100644 index 526dcd5373..0000000000 --- a/.github/actions/kurl-create-installer/action.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: kurl-create-installer -description: "Create a kURL installer for a KOTS version" - -inputs: - addon_version: - description: "Kots version (without the 'v')." - required: true - addon_package_url: - description: "S3 package url." - required: true -outputs: - installer_id: - description: "ID of the installer" - value: ${{ steps.create-installer.outputs.installer_id }} - -runs: - using: "composite" - steps: - - name: create installer - id: create-installer - shell: bash - run: | - set +e - - echo "apiVersion: cluster.kurl.sh/v1beta1 - kind: Installer - metadata: - name: kots-ci-installer - spec: - kubernetes: - version: 1.28.x - flannel: - version: latest - minio: - version: latest - openebs: - version: latest - isLocalPVEnabled: true - localPVStorageClassName: default - isCstorEnabled: false - contour: - version: latest - containerd: - version: latest - registry: - version: latest - kotsadm: - version: ${{ inputs.addon_version }} - s3Override: ${{ inputs.addon_package_url }} - ekco: - version: latest - enableInternalLoadBalancer: true" > installer.yaml - - installer_url=$(curl -s -X POST https://k8s.kurl.sh/installer -H 'Content-Type: text/yaml' --data-binary @installer.yaml) - installer_id=${installer_url#"https://kurl.sh/"} - echo "installer_id=$installer_id" >> $GITHUB_ENV diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 6f0d5b9bc2..50618bca3b 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -617,14 +617,55 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: ./.github/actions/kurl-create-installer + - name: create installer id: create-installer - with: - addon_version: ${{ needs.generate-kurl-addon.outputs.addon_version }} - addon_package_url: ${{ needs.generate-kurl-addon.outputs.addon_package_url }} + run: | + set +e + + echo "apiVersion: cluster.kurl.sh/v1beta1 + kind: Installer + metadata: + name: kots-ci-installer + spec: + kubernetes: + version: 1.28.x + flannel: + version: latest + minio: + version: latest + openebs: + version: latest + isLocalPVEnabled: true + localPVStorageClassName: default + isCstorEnabled: false + contour: + version: latest + containerd: + version: latest + registry: + version: latest + kotsadm: + version: ${{ needs.generate-kurl-addon.outputs.addon_version }} + s3Override: ${{ needs.generate-kurl-addon.outputs.addon_package_url }} + ekco: + version: latest + enableInternalLoadBalancer: true" > installer.yaml + + installer_url=$(curl -s -X POST https://k8s.kurl.sh/installer -H 'Content-Type: text/yaml' --data-binary @installer.yaml) + installer_id=${installer_url#"https://kurl.sh/"} + echo "installer_id=$installer_id" >> $GITHUB_ENV outputs: installer_id: ${{ steps.create-installer.outputs.installer_id }} + + echo-kurl-installer-id: + runs-on: ubuntu-20.04 + needs: [ can-run-ci, enable-tests, create-kurl-installer ] + steps: + - name: echo installer id + run: | + echo "installer_id=${{ needs.create-kurl-installer.outputs.installer_id }}" + cmx-versions: runs-on: ubuntu-20.04