Skip to content

Commit

Permalink
Bump Version (#66)
Browse files Browse the repository at this point in the history
* Bump version and add release steps

* Fix typo

* Check tag checks work

* Remove current version from tag checks

* Set fail-fast to false to enable all tests to run to completion

* Only run goreleaser on tag, remove push from tag-check
  • Loading branch information
stevenelleman-okta authored Aug 2, 2022
1 parent d1c511a commit 35025d2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
name: Release
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tag-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
strategy:
matrix:
# On version change, add new version here
# On breaking changes, by definition past version mays no longer work. Wipe version at that point.
# Skip v0.1.2, which was merged despite broken tests
tag: [v0.1.0, v0.1.1, v0.1.3, v0.1.4, v0.1.5]
tag: [v0.1.0, v0.1.1, v0.1.3, v0.1.4, v0.1.5, v0.1.6, v0.1.7, v0.1.8, v0.1.9, v0.2.0]
fail-fast: false
steps:
- name: Check out repository code of tag
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NAMESPACE=pam
NAME=oktapam
BINARY=terraform-provider-${NAME}
# On verion changes, update tag-checks.yml
VERSION=0.1.5
VERSION=0.2.1
OS_ARCH=$(shell go env GOOS)_$(shell go env GOARCH)
PLUGIN_DIR=~/.terraform.d/plugins

Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export OKTAPAM_API_HOST="https://my.testing.domain"
export OKTAPAM_TRUSTED_DOMAIN_OVERRIDE="my.testing.domain"
```


Developing the Provider
---------------------------
To compile the provider, run `make build`. This will build the provider and put in the project directory
Expand Down Expand Up @@ -82,3 +81,10 @@ In order to run the full suite of Acceptance tests, run `make testacc`.
```sh
$ make testacc
```

Releasing the Provider
---------------------------
1. Bump version in `Makefile`.
2. Add last version to `tag-checks.yml`.
3. Merge and make tag corresponding to the new version.
4. Make release corresponding to new tag.

0 comments on commit 35025d2

Please sign in to comment.