Skip to content

Commit

Permalink
Merge pull request #13 from hpidcock/ecr
Browse files Browse the repository at this point in the history
Support ECR
  • Loading branch information
hpidcock authored Aug 24, 2023
2 parents 73dbf4e + cb54c60 commit 3444523
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to ECR Public
uses: docker/login-action@v2
with:
registry: public.ecr.aws
username: ${{ secrets.RELEASE_ECR_ACCESS_KEY_ID }}
password: ${{ secrets.RELEASE_ECR_SECRET_ACCESS_KEY }}

- name: Push images
if: ${{ success() && github.ref == 'refs/heads/master' }}
run: |
Expand Down
9 changes: 6 additions & 3 deletions images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ images:
dockerfile: Dockerfile-ubuntu
context: ubuntu-context
registry_paths:
- jujusolutions/charm-base
- docker.io/jujusolutions/charm-base
- public.ecr.aws/juju/charm-base
tags:
- ubuntu-22.04
- latest
Expand All @@ -24,7 +25,8 @@ images:
dockerfile: Dockerfile-ubuntu
context: ubuntu-context
registry_paths:
- jujusolutions/charm-base
- docker.io/jujusolutions/charm-base
- public.ecr.aws/juju/charm-base
tags:
- ubuntu-20.04
platforms:
Expand All @@ -43,7 +45,8 @@ images:
dockerfile: Dockerfile-ubuntu
context: ubuntu-context
registry_paths:
- jujusolutions/charm-base
- docker.io/jujusolutions/charm-base
- public.ecr.aws/juju/charm-base
tags:
- ubuntu-18.04
platforms:
Expand Down

0 comments on commit 3444523

Please sign in to comment.