diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c201da5c1..4f55c08e0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -285,6 +285,13 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} if: github.event_name != 'pull_request' + - name: Login to Public ECR + uses: docker/login-action@v1 + with: + registry: public.ecr.aws + username: ${{ secrets.AWS_ACCESS_KEY_ID }} + password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + if: github.event_name != 'pull_request' - name: Docker meta id: meta uses: docker/metadata-action@v3 @@ -292,6 +299,7 @@ jobs: images: | nginx/nginx-ingress ghcr.io/nginxinc/kubernetes-ingress + public.ecr.aws/nginx/nginx-ingress flavor: suffix=${{ matrix.image != 'debian' && '-' || '' }}${{ matrix.image != 'debian' && matrix.image != 'opentracing' && matrix.image || '' }}${{ matrix.image == 'opentracing' && 'ot' || '' }},onlatest=true tags: | type=edge diff --git a/.github/workflows/update-docker-images.yml b/.github/workflows/update-docker-images.yml index 4d8b810153..3466804386 100644 --- a/.github/workflows/update-docker-images.yml +++ b/.github/workflows/update-docker-images.yml @@ -180,6 +180,13 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} if: ${{ matrix.needs-updating == 'true' }} + - name: Login to Public ECR + uses: docker/login-action@v1 + with: + registry: public.ecr.aws + username: ${{ secrets.AWS_ACCESS_KEY_ID }} + password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + if: ${{ matrix.needs-updating == 'true' }} - name: Get short tag id: tag run: | @@ -194,6 +201,7 @@ jobs: images: | nginx/nginx-ingress ghcr.io/nginxinc/kubernetes-ingress + public.ecr.aws/nginx/nginx-ingress flavor: | latest=true suffix=${{ matrix.image != 'debian' && '-' || '' }}${{ matrix.image != 'debian' && matrix.image != 'opentracing' && matrix.image || '' }}${{ matrix.image == 'opentracing' && 'ot' || '' }},onlatest=true