Skip to content

Commit 5af9ab9

Browse files
committed
Merge branch 'main' into add-cors-policy
Signed-off-by: Yossi Mesika <[email protected]>
2 parents 043de49 + 56d7672 commit 5af9ab9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2984
-196
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ env:
2828
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
2929
VANITY_REGISTRY: cr.kgateway.dev/kgateway-dev
3030
MAIN_VERSION: v2.1.0-main
31+
GORELEASER_DISABLE_RELEASE: false
3132

3233
permissions:
3334
contents: write
@@ -113,18 +114,10 @@ jobs:
113114
- name: Prep Go Runner
114115
uses: ./.github/actions/prep-go-runner
115116

116-
# We publish a rolling main release for every commit to main. Deleting the release
117-
# ensures that the tagged commit is not stale. Goreleaser will create a new tag
118-
# and release for the tagged commit.
119-
- name: Delete ${MAIN_VERSION} release if it exists
117+
- name: Conditionally disable release for pushes to main
120118
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
121-
continue-on-error: true
122119
run: |
123-
set -x
124-
echo "Deleting the ${MAIN_VERSION} release"
125-
gh release delete ${MAIN_VERSION} --repo ${{ github.repository }} --yes --cleanup-tag
126-
env:
127-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120+
echo "GORELEASER_DISABLE_RELEASE=true" >> $GITHUB_ENV
128121
129122
- name: Log into ghcr.io
130123
if: ${{ github.event_name != 'pull_request' }}
@@ -145,6 +138,7 @@ jobs:
145138
IMAGE_REGISTRY: ${{ env.IMAGE_REGISTRY }}
146139
GORELEASER_ARGS: ${{ needs.setup.outputs.goreleaser_args }}
147140
GORELEASER_CURRENT_TAG: ${{ needs.setup.outputs.version }}
141+
GORELEASER_DISABLE_RELEASE: ${{ env.GORELEASER_DISABLE_RELEASE }}
148142

149143
validate:
150144
name: Validate release artifacts

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ docker_manifests:
173173
changelog:
174174
disable: true
175175
release:
176+
disable: '{{ if isEnvSet "GORELEASER_DISABLE_RELEASE" }}{{ .Env.GORELEASER_DISABLE_RELEASE }}{{ else }}false{{ end }}'
176177
prerelease: "auto"
177178
mode: "replace"
178179
replace_existing_artifacts: true

api/applyconfiguration/api/v1alpha1/backendconfigpolicy.go

Lines changed: 250 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)