Skip to content

Commit

Permalink
Support ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
hpidcock committed Aug 24, 2023
1 parent 4c18729 commit 2a0347c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 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
11 changes: 7 additions & 4 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 @@ -16,7 +17,7 @@ images:
- linux/riscv64
build_args:
- "BASE_IMAGE=ubuntu:22.04"
juju_test_channel: 3.0/stable
juju_test_channel: 3.1/stable
microk8s_test_channel: 1.25-strict/stable
series: jammy

Expand All @@ -25,7 +26,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 @@ -45,7 +47,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 2a0347c

Please sign in to comment.