Skip to content

Commit 40ee9cb

Browse files
committed
push to ecr maybe
1 parent 78cdc5b commit 40ee9cb

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ jobs:
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:

.goreleaser.docker.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ builds:
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}}"
3953
docker_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
4865
checksum:
4966
disable: true
5067
release:

0 commit comments

Comments
 (0)