Skip to content

Commit

Permalink
fix multi-arch build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed Sep 6, 2023
1 parent 3a0f53c commit 80419d8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '>=1.19.0'
go-version: '>=1.21.0'

- name: Cross-Platform build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '>=1.19.0'
go-version: '>=1.21.0'

- name: Lint
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax = docker/dockerfile:experimental

FROM --platform=${BUILDPLATFORM} golang:1.19-alpine as builder
FROM --platform=${BUILDPLATFORM} golang:1.21-alpine as builder
# passed by buildkit
ARG TARGETOS
ARG TARGETARCH
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module secrets-init

go 1.19
go 1.21

require (
cloud.google.com/go/compute v1.10.0
Expand Down
3 changes: 2 additions & 1 deletion pkg/secrets/aws/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package aws
import (
"context"
"encoding/json"
"sort"
"strings"

"secrets-init/pkg/secrets" //nolint:gci
Expand Down Expand Up @@ -96,7 +97,7 @@ func (sp *SecretsProvider) ResolveSecrets(_ context.Context, vars []string) ([]s
}
envs = append(envs, env)
}

sort.Strings(envs)
return envs, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/secrets/aws/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func TestSecretsProvider_ResolveSecrets(t *testing.T) {
"test-secret-2=arn:aws:secretsmanager:87654321",
},
want: []string{
"test-secret-1=test-secret-value-1",
"non-secret=hello",
"test-secret-1=test-secret-value-1",
"test-secret-2=test-secret-value-2",
},
mockServiceProvider: func(mockSM *mocks.SecretsManagerAPI, mockSSM *mocks.SSMAPI) secrets.Provider {
Expand Down

0 comments on commit 80419d8

Please sign in to comment.