Skip to content

Commit b4068c1

Browse files
authored
pin artifact onto specific arch (#141)
<!--- Note to EXTERNAL Contributors --> <!-- Thanks for opening a PR! If it is a significant code change, please **make sure there is an open issue** for this. We work best with you when we have accepted the idea first before you code. --> <!--- For ALL Contributors 👇 --> ## What was changed - Pin artifact onto the specific architecture that can support it. ## Why? - So we don't get exec errors (we are getting them right now) ## Checklist <!--- add/delete as needed ---> 1. Closes <!-- add issue number here --> 2. How was this tested: - Not tested yet. I am going to test this one out by first merging to main and then using the newly built image on the running controller in our staging environment. 3. Any docs updates needed? <!--- update README if applicable or point out where to update docs.temporal.io -->
1 parent 8a4fd39 commit b4068c1

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.goreleaser.main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ checksum:
3232

3333
# Only build Docker images with 'main' tag
3434
dockers:
35-
- image_templates:
35+
- ids:
36+
- nix
37+
goos: linux
38+
goarch: amd64
39+
image_templates:
3640
- "temporalio/temporal-worker-controller:main-amd64"
3741
dockerfile: Dockerfile.goreleaser
3842
use: buildx
@@ -49,7 +53,11 @@ dockers:
4953
extra_files:
5054
- LICENSE
5155

52-
- image_templates:
56+
- ids:
57+
- nix
58+
goos: linux
59+
goarch: arm64
60+
image_templates:
5361
- "temporalio/temporal-worker-controller:main-arm64"
5462
dockerfile: Dockerfile.goreleaser
5563
use: buildx

.goreleaser.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ checksum:
4040
algorithm: sha256
4141

4242
dockers:
43-
- image_templates:
43+
- ids:
44+
- nix
45+
goos: linux
46+
goarch: amd64
47+
image_templates:
4448
- "temporalio/temporal-worker-controller:{{ .Tag }}-amd64"
4549
- "temporalio/temporal-worker-controller:v{{ .Major }}.{{ .Minor }}-amd64"
4650
dockerfile: Dockerfile.goreleaser
@@ -58,7 +62,11 @@ dockers:
5862
extra_files:
5963
- LICENSE
6064

61-
- image_templates:
65+
- ids:
66+
- nix
67+
goos: linux
68+
goarch: arm64
69+
image_templates:
6270
- "temporalio/temporal-worker-controller:{{ .Tag }}-arm64"
6371
- "temporalio/temporal-worker-controller:v{{ .Major }}.{{ .Minor }}-arm64"
6472
dockerfile: Dockerfile.goreleaser

0 commit comments

Comments
 (0)