Skip to content

Commit 615e088

Browse files
authored
Upload Docker images to AWS ECR Public (#230)
1 parent d011a2a commit 615e088

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,21 @@ jobs:
7676
username: ${{ github.repository_owner }}
7777
password: ${{ secrets.GITHUB_TOKEN }}
7878
if: github.event_name != 'pull_request'
79+
- name: Login to Public ECR
80+
uses: docker/login-action@v1
81+
with:
82+
registry: public.ecr.aws
83+
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
84+
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
85+
if: github.event_name != 'pull_request'
7986
- name: Docker meta
8087
id: meta
8188
uses: docker/metadata-action@v3
8289
with:
8390
images: |
8491
nginx/nginx-prometheus-exporter
8592
ghcr.io/nginxinc/nginx-prometheus-exporter
93+
public.ecr.aws/nginx/nginx-prometheus-exporter
8694
tags: |
8795
type=edge
8896
type=ref,event=pr

0 commit comments

Comments
 (0)