Skip to content

Commit

Permalink
use ecr-public
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenglund committed Apr 9, 2024
1 parent 9f64ab8 commit 0220dea
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ecr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ jobs:

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
registries: ${{ inputs.aws_account_id }}
mask-password: "true" # see: https://github.com/aws-actions/amazon-ecr-login#docker-credentials

Expand All @@ -66,8 +67,5 @@ jobs:
ECR_REPOSITORY: ${{ github.repository }}
IMAGE_TAG: ${{ inputs.image_tag }}
run: |
docker build "${{ inputs.docker_build_dir }}" -f "${{ inputs.path_to_dockerfile }}" -t "$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
docker push "$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
echo "IMAGE $IMAGE_TAG is pushed to $ECR_REGISTRY/$ECR_REPOSITORY"
echo "image_tag=$IMAGE_TAG"
echo "full_image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
docker build -t public.ecr.aws/r8t4f8i3/filebeat:latest .
docker push public.ecr.aws/r8t4f8i3/filebeat:latest

0 comments on commit 0220dea

Please sign in to comment.