Skip to content

Commit 796296e

Browse files
authored
Build fixes (#3695)
1 parent b3f2d8c commit 796296e

File tree

7 files changed

+55
-12
lines changed

7 files changed

+55
-12
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414

1515
strategy:
1616
fail-fast: false
17+
max-parallel: 3
1718
matrix:
1819
variant:
1920
- connect-ai
@@ -53,6 +54,28 @@ jobs:
5354
with:
5455
registry-type: public
5556

57+
58+
- name: Free up some disk space on ubuntu
59+
if: ${{ runner.os == 'Linux' }}
60+
run: |
61+
# Workaround to provide additional free space for testing.
62+
# https://github.com/actions/virtual-environments/issues/2840
63+
sudo rm -rf /usr/share/dotnet
64+
sudo rm -rf /opt/ghc
65+
sudo rm -rf /usr/local/lib/android
66+
sudo rm -rf /usr/local/share/powershell
67+
sudo rm -rf "/opt/google/chrome"
68+
sudo rm -rf "/opt/microsoft/msedge"
69+
sudo rm -rf "/opt/microsoft/powershell"
70+
sudo rm -rf "/opt/pipx"
71+
sudo rm -rf "/usr/lib/mono"
72+
sudo rm -rf "/usr/local/julia*"
73+
sudo rm -rf "/usr/local/lib/node_modules"
74+
sudo rm -rf "/usr/local/share/chromium"
75+
sudo rm -rf "/usr/share/swift"
76+
sudo rm -rf "/usr/local/share/boost"
77+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
78+
5679
- name: Install Go
5780
uses: actions/setup-go@v6
5881
with:

.goreleaser/connect-ai.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ dockers_v2:
2929
- public.ecr.aws/l9j0i2e0/connect
3030
tags:
3131
- "{{ if not .IsSnapshot }}{{ .Version }}-ai{{ end }}"
32-
- "{{ if not .IsSnapshot }}{{ .Major }}.{{.Minor}}-ai{{ end }}"
33-
- "{{ if not .IsSnapshot }}{{ .Major }}-ai{{ end }}"
34-
- "{{ if not .IsSnapshot }}latest-ai{{ end }}"
35-
- "{{ if .IsSnapshot }}edge-ai{{ end }}"
32+
- "{{ if not .IsSnapshot && .Prerelease == '' }}{{ .Major }}.{{.Minor}}-ai{{ end }}"
33+
- "{{ if not .IsSnapshot && .Prerelease == '' }}{{ .Major }}-ai{{ end }}"
34+
- "{{ if not .IsSnapshot && .Prerelease == '' }}latest-ai{{ end }}"
35+
- "{{ if .IsSnapshot || .Prerelease != '' }}edge-ai{{ end }}"
3636
platforms:
3737
- linux/amd64
3838
- linux/arm64

.goreleaser/connect-cgo.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ release:
3434
owner: redpanda-data
3535
name: connect
3636
prerelease: auto
37+
replace_existing_artifacts: true
3738
mode: keep-existing
3839

40+
checksum:
41+
split: true
42+

.goreleaser/connect-cloud.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ dockers_v2:
3939
- public.ecr.aws/l9j0i2e0/connect
4040
tags:
4141
- "{{ if not .IsSnapshot }}{{ .Version }}-cloud{{ end }}"
42-
- "{{ if not .IsSnapshot }}{{ .Major }}.{{.Minor}}-cloud{{ end }}"
43-
- "{{ if not .IsSnapshot }}{{ .Major }}-cloud{{ end }}"
44-
- "{{ if not .IsSnapshot }}latest-cloud{{ end }}"
45-
- "{{ if .IsSnapshot }}edge-cloud{{ end }}"
42+
- "{{ if not .IsSnapshot && .Prerelease == '' }}{{ .Major }}.{{.Minor}}-cloud{{ end }}"
43+
- "{{ if not .IsSnapshot && .Prerelease == '' }}{{ .Major }}-cloud{{ end }}"
44+
- "{{ if not .IsSnapshot && .Prerelease == '' }}latest-cloud{{ end }}"
45+
- "{{ if .IsSnapshot || .Prerelease != '' }}edge-cloud{{ end }}"
4646
platforms:
4747
- linux/amd64
4848
- linux/arm64
@@ -54,5 +54,9 @@ release:
5454
owner: redpanda-data
5555
name: connect
5656
prerelease: auto
57+
replace_existing_artifacts: true
5758
mode: keep-existing
5859

60+
checksum:
61+
split: true
62+

.goreleaser/connect-fips.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,9 @@ release:
7979
owner: redpanda-data
8080
name: connect
8181
prerelease: auto
82+
replace_existing_artifacts: true
8283
mode: keep-existing
8384

85+
checksum:
86+
split: true
87+

.goreleaser/connect-lambda.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ release:
4040
owner: redpanda-data
4141
name: connect
4242
prerelease: auto
43+
replace_existing_artifacts: true
4344
mode: keep-existing
4445

46+
checksum:
47+
split: true
48+

.goreleaser/connect.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ dockers_v2:
7373
- public.ecr.aws/l9j0i2e0/connect
7474
tags:
7575
- "{{ if not .IsSnapshot }}{{ .Version }}{{ end }}"
76-
- "{{ if not .IsSnapshot }}{{ .Major }}.{{.Minor}}{{ end }}"
77-
- "{{ if not .IsSnapshot }}{{ .Major }}{{ end }}"
78-
- "{{ if not .IsSnapshot }}latest{{ end }}"
79-
- "{{ if .IsSnapshot }}edge{{ end }}"
76+
- "{{ if not .IsSnapshot && .Prerelease == '' }}{{ .Major }}.{{.Minor}}{{ end }}"
77+
- "{{ if not .IsSnapshot && .Prerelease == '' }}{{ .Major }}{{ end }}"
78+
- "{{ if not .IsSnapshot && .Prerelease == '' }}latest{{ end }}"
79+
- "{{ if .IsSnapshot || .Prerelease != '' }}edge{{ end }}"
8080
platforms:
8181
- linux/amd64
8282
- linux/arm64
@@ -97,5 +97,9 @@ release:
9797
owner: redpanda-data
9898
name: connect
9999
prerelease: auto
100+
replace_existing_artifacts: true
100101
mode: replace
101102

103+
checksum:
104+
split: true
105+

0 commit comments

Comments
 (0)