File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 3636 goreleaser-docker :
3737 runs-on : ubuntu-latest
3838 steps :
39+ - name : Configure AWS credentials via OIDC
40+ uses : aws-actions/configure-aws-credentials@v2
41+ with :
42+ role-to-assume : arn:aws:iam::168442440833:role/Baton-Github-Github-Push
43+ aws-region : us-west-2
44+ - name : Login to Amazon ECR
45+ uses : aws-actions/amazon-ecr-login@v1
46+
3947 - name : Checkout
4048 uses : actions/checkout@v4
4149 with :
Original file line number Diff line number Diff line change 44 - binary : baton-github
55 env :
66 - CGO_ENABLED=0
7+ - BATON_LAMBDA_SUPPORT=1
78 id : linux
89 main : ./cmd/baton-github
910 goos :
@@ -36,6 +37,19 @@ dockers:
3637 - " --label=org.opencontainers.image.title={{.ProjectName}}"
3738 - " --label=org.opencontainers.image.revision={{.FullCommit}}"
3839 - " --label=org.opencontainers.image.version={{.Version}}"
40+ # ECR - arm64 only
41+ - use : buildx
42+ goos : linux
43+ goarch : arm64
44+ image_templates :
45+ - " 168442440833.dkr.ecr.us-west-2.amazonaws.com/baton-github:{{ .Version }}-arm64"
46+ - " 168442440833.dkr.ecr.us-west-2.amazonaws.com/baton-github:latest-arm64"
47+ build_flag_templates :
48+ - " --platform=linux/arm64/v8"
49+ - " --label=org.opencontainers.image.created={{.Date}}"
50+ - " --label=org.opencontainers.image.title={{.ProjectName}}"
51+ - " --label=org.opencontainers.image.revision={{.FullCommit}}"
52+ - " --label=org.opencontainers.image.version={{.Version}}"
3953docker_manifests :
4054 - name_template : ghcr.io/conductorone/baton-github:{{ .Version }}
4155 image_templates :
@@ -45,6 +59,9 @@ docker_manifests:
4559 image_templates :
4660 - ghcr.io/conductorone/baton-github:latest-amd64
4761 - ghcr.io/conductorone/baton-github:latest-arm64
62+ - name_template : 168442440833.dkr.ecr.us-west-2.amazonaws.com/baton-github:{{ .Version }}
63+ image_templates :
64+ - 168442440833.dkr.ecr.us-west-2.amazonaws.com/baton-github:{{ .Version }}-arm64
4865checksum :
4966 disable : true
5067release :
You can’t perform that action at this time.
0 commit comments