Skip to content

Commit 26715f7

Browse files
authored
Upload NGINX Ingress Controller binaries to release (#2044)
1 parent f2b2443 commit 26715f7

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,18 @@ jobs:
225225
uses: actions/setup-go@v2
226226
with:
227227
go-version: ${{ needs.checks.outputs.go_version }}
228+
- name: Publish Release Notes on new tag
229+
uses: release-drafter/release-drafter@v5
230+
with:
231+
publish: true
232+
env:
233+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
234+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
228235
- name: Build binaries
229236
uses: goreleaser/goreleaser-action@v2
230237
with:
231238
version: latest
232-
args: build --rm-dist --id kubernetes-ingress ${{ github.event_name == 'pull_request' && '--single-target' || '' }} ${{ !startsWith(github.ref, 'refs/tags/') && '--snapshot' || '' }}
239+
args: ${{ !startsWith(github.ref, 'refs/tags/') && 'build --snapshot' || 'release' }} ${{ github.event_name == 'pull_request' && '--single-target' || '' }} --rm-dist --id kubernetes-ingress
233240
env:
234241
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
235242
GOPATH: ${{ needs.check.outputs.go_path }}
@@ -400,16 +407,3 @@ jobs:
400407
git -c user.name='${{ env.GIT_NAME }}' -c user.email='${{ env.GIT_MAIL }}' \
401408
commit -m "NGINX Ingress Controller - Release ${{ needs.package-helm.outputs.type }} ${{ needs.package-helm.outputs.version }}"
402409
git push -u origin master
403-
404-
publish-release-notes:
405-
name: Publish Release Notes
406-
runs-on: ubuntu-20.04
407-
needs: release-helm
408-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
409-
steps:
410-
- name: Publish Release Notes
411-
uses: release-drafter/release-drafter@v5
412-
with:
413-
publish: true
414-
env:
415-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ builds:
3838
tags:
3939
- aws
4040
archives:
41-
- format: binary
41+
- id: kubernetes-ingress
42+
format: binary
43+
builds: [kubernetes-ingress]
44+
- id: aws
45+
format: binary
46+
builds: [aws]
4247
changelog:
4348
skip: true
49+
release:
50+
ids: [kubernetes-ingress]

0 commit comments

Comments
 (0)