Skip to content

Commit

Permalink
ci: update ci.yml to publish releases (#26)
Browse files Browse the repository at this point in the history
* ci: update ci.yml to publish releases
* chore: bump TF provider to v0.20.8
---------

Signed-off-by: Tyler Gillson <[email protected]>
  • Loading branch information
TylerGillson authored Aug 7, 2024
1 parent 34fa5e3 commit a7a5c4d
Show file tree
Hide file tree
Showing 33 changed files with 196 additions and 167 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
- main
- release-*
pull_request: {}
workflow_dispatch: {}
workflow_dispatch:
inputs:
tag:
description: 'Semver release tag (e.g. v0.1.0)'
required: true

env:
# Common versions
Expand All @@ -33,7 +37,6 @@ jobs:
paths_ignore: '["**.md", "**.png", "**.jpg"]'
do_not_skip: '["workflow_dispatch", "schedule", "push"]'


lint:
runs-on: ubuntu-22.04
needs: detect-noop
Expand Down Expand Up @@ -256,6 +259,22 @@ jobs:
- name: Deploying locally built provider package
run: make local-deploy

release-vars:
runs-on: ubuntu-22.04
needs: detect-noop
if: needs.detect-noop.outputs.noop != 'true' && github.event.inputs.tag != ''

steps:
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
generate_release_notes: true
make_latest: true
tag_name: ${{ github.event.inputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}

publish-artifacts:
runs-on: ubuntu-22.04
needs: detect-noop
Expand Down Expand Up @@ -307,6 +326,14 @@ jobs:
- name: Vendor Dependencies
run: make vendor vendor.check

# The xpkg will only be indexed on Upbound Marketplace
# if version is a semver tag. Set a tag via workflow dispatch
# to publish a formal release. VERSION is picked up by the
# Build Artifacts and Publish Artifacts to Upbound Marketplace steps.
- name: Set release version
if: needs.detect-noop.outputs.noop != 'true' && github.event.inputs.tag != ''
run: echo "VERSION=${{ github.event.inputs.tag }}" >> $GITHUB_ENV

- name: Build Artifacts
run: make -j2 build.all
env:
Expand All @@ -333,3 +360,9 @@ jobs:
if: env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR != ''
env:
GIT_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Trigger docs.crd.dev index
if: needs.detect-noop.outputs.noop != 'true' && github.event.inputs.tag != ''
run: |
curl -v https://doc.crds.dev/github.com/crossplane-contrib/provider-palette@${{ github.event.inputs.tag }}
echo "Triggered docs.crd.dev to index provider-palette@${{ github.event.inputs.tag }}"
31 changes: 0 additions & 31 deletions .github/workflows/tag.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PROJECT_REPO := github.com/crossplane-contrib/$(PROJECT_NAME)
export TERRAFORM_VERSION := 1.3.3
export TERRAFORM_PROVIDER_SOURCE := spectrocloud/spectrocloud
export TERRAFORM_PROVIDER_REPO := https://github.com/spectrocloud/terraform-provider-spectrocloud
export TERRAFORM_PROVIDER_VERSION := 0.20.7
export TERRAFORM_PROVIDER_VERSION := 0.20.8
export TERRAFORM_PROVIDER_DOWNLOAD_NAME := terraform-provider-spectrocloud
export TERRAFORM_NATIVE_PROVIDER_BINARY := terraform-provider-spectrocloud_$(TERRAFORM_PROVIDER_VERSION)
export TERRAFORM_DOCS_PATH := docs/resources
Expand Down
8 changes: 4 additions & 4 deletions apis/cluster/v1alpha1/zz_aks_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions apis/cluster/v1alpha1/zz_aws_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions apis/cluster/v1alpha1/zz_azure_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions apis/cluster/v1alpha1/zz_customcloud_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a7a5c4d

Please sign in to comment.