Skip to content

Commit 77678d8

Browse files
committed
feat(aws): add aws image variant with default cred helper set to ecr
1 parent f5e4023 commit 77678d8

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/workflows/container.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,17 @@ jobs:
5858
cookielab/container-image-tools:${{ github.ref_name }}
5959
public.ecr.aws/cookielab/container-image-tools:${{ github.ref_name }}
6060
ghcr.io/${{ github.repository_owner }}/container-image-tools:${{ github.ref_name }}
61+
62+
- name: Build and push - AWS
63+
uses: docker/build-push-action@v4
64+
with:
65+
context: .
66+
file: ./Dockerfile.aws
67+
build-args: |
68+
VERSION=${{ github.ref_name }}
69+
platforms: linux/amd64,linux/arm64
70+
push: true
71+
tags: |
72+
cookielab/container-image-tools:${{ github.ref_name }}-aws
73+
public.ecr.aws/cookielab/container-image-tools:${{ github.ref_name }}-aws
74+
ghcr.io/${{ github.repository_owner }}/container-image-tools:${{ github.ref_name }}-aws

Dockerfile.aws

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ARG VERSION
2+
FROM cookielab/container-image-tools:${VERSION}
3+
4+
COPY config.aws.json /container-image-tools/.docker/config.json

config.aws.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"credsStore": "ecr-login",
3+
"credHelpers": {
4+
"ghcr.io": "env",
5+
"public.ecr.aws": "ecr-login",
6+
"registry.gitlab.com": "env",
7+
"registry.cookielab.io": "env"
8+
}
9+
}

0 commit comments

Comments
 (0)