Skip to content

Commit

Permalink
feat(aws): add aws image variant with default cred helper set to ecr
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrtak-CZ committed Jun 19, 2023
1 parent f5e4023 commit 77678d8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,17 @@ jobs:
cookielab/container-image-tools:${{ github.ref_name }}
public.ecr.aws/cookielab/container-image-tools:${{ github.ref_name }}
ghcr.io/${{ github.repository_owner }}/container-image-tools:${{ github.ref_name }}
- name: Build and push - AWS
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.aws
build-args: |
VERSION=${{ github.ref_name }}
platforms: linux/amd64,linux/arm64
push: true
tags: |
cookielab/container-image-tools:${{ github.ref_name }}-aws
public.ecr.aws/cookielab/container-image-tools:${{ github.ref_name }}-aws
ghcr.io/${{ github.repository_owner }}/container-image-tools:${{ github.ref_name }}-aws
4 changes: 4 additions & 0 deletions Dockerfile.aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ARG VERSION
FROM cookielab/container-image-tools:${VERSION}

COPY config.aws.json /container-image-tools/.docker/config.json
9 changes: 9 additions & 0 deletions config.aws.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"credsStore": "ecr-login",
"credHelpers": {
"ghcr.io": "env",
"public.ecr.aws": "ecr-login",
"registry.gitlab.com": "env",
"registry.cookielab.io": "env"
}
}

0 comments on commit 77678d8

Please sign in to comment.