Skip to content

Commit

Permalink
chore(ci): update changelog with 1.2.3 and fix release pipeline on ma…
Browse files Browse the repository at this point in the history
…in (#216)
  • Loading branch information
pmalek authored Apr 23, 2024
1 parent bf8ef3a commit 2e4bfab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/__release-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ jobs:
echo ${VERSION} > VERSION
- uses: jdx/mise-action@v2
if: ${{ (inputs.base == 'main' && matrix.base == 'main') || (inputs.base != 'main') }}
with:
install: false

Expand Down Expand Up @@ -261,7 +262,7 @@ jobs:
# NOTE: If the base branch set for workflow is not main (it's a release branch)
# then create a commit message which will not trigger the release workflow
# (via release-bot.yaml) but which will only update VERSION and config/.
MSG: "${{ inputs.base != 'main' && matrix.base == 'main' && format('chore( {0} ): [main] {1}', inputs.release-type, env.VERSION) || format('chore( {0} ): [bot] {1}', inputs.release-type, env.VERSION) }}"
MSG: "${{ inputs.base != 'main' && matrix.base == 'main' && format('chore({0}): [main] {1}', inputs.release-type, env.VERSION) || format('chore({0}): [bot] {1}', inputs.release-type, env.VERSION) }}"
run: |
echo "MSG=${MSG}" >> $GITHUB_ENV
Expand All @@ -272,6 +273,7 @@ jobs:
with:
token: ${{ secrets.gh-pat }}
path: .
branch: release/${{ needs.semver.outputs.fullversion }}/pr-${{ matrix.base }}
base: ${{ matrix.base }}
add-paths: |
VERSION
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
name: release
run-name: "Release ${{ format('{0} (type: {1}) (branch: {2})', inputs.tag, inputs.release-type, inputs.base) }} "
run-name: "Release ${{ format('{0} (type: {1}) (branch: {2})', inputs.tag, inputs.release_type, github.ref_name) }} "

on:
workflow_dispatch:
inputs:
tag:
description: The version to release (e.g. v1.2.3)
required: true
base:
description: The base branch from which to release and against which to create a release PR.
type: string
default: 'main'
required: false
latest:
description: Whether to tag this build latest
type: boolean
Expand All @@ -38,6 +33,6 @@ jobs:
image-name: ${{ vars.DOCKERHUB_IMAGE_NAME }}
latest: ${{ inputs.latest }}
tag: ${{ inputs.tag }}
base: ${{ inputs.base }}
base: ${{ github.ref_name }}
release-type: ${{ inputs.release_type }}
regenerate-manifests: true
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
`apis` -> `api` and `controllers` -> `controller`.
[#84](https://github.com/Kong/gateway-operator/pull/84)

## [v1.2.2]
## [v1.2.3]

### Fixes

> Release date: 2024-04-22
> Release date: 2024-04-23
- Fixes an issue where managed `Gateway`s controller wasn't able to reduce
the created `DataPlane` objects when too many have been created.
Expand All @@ -47,6 +47,12 @@
disabled.
[#103](https://github.com/Kong/gateway-operator/pull/103)

## [v1.2.2]

> Release date: 2024-04-23
### **NOTE: Retracted**

## [v1.2.1]

> Release date: 2024-03-19
Expand Down Expand Up @@ -629,6 +635,7 @@ leftovers from previous operator deployments in the cluster. The user needs to d
(clusterrole, clusterrolebinding, validatingWebhookConfiguration) before
re-installing the operator through the bundle.

[v1.2.3]: https://github.com/Kong/gateway-operator-archive/compare/v1.2.2..v1.2.3
[v1.2.2]: https://github.com/Kong/gateway-operator-archive/compare/v1.2.1..v1.2.2
[v1.2.1]: https://github.com/Kong/gateway-operator-archive/compare/v1.2.0..v1.2.1
[v1.2.0]: https://github.com/Kong/gateway-operator-archive/compare/v1.1.0..v1.2.0
Expand Down

0 comments on commit 2e4bfab

Please sign in to comment.