Skip to content

Commit

Permalink
Removed env
Browse files Browse the repository at this point in the history
Signed-off-by: 0ssigeno <s.berni@certego.net>
  • Loading branch information
0ssigeno committed Oct 5, 2023
1 parent 2aa0117 commit 9700733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions .github/actions/push_on_ecr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,10 @@ runs:

- name: Build and push
uses: docker/build-push-action@v5
env:
REGISTRY: ${{inputs.aws_account_id}}.dkr.ecr.${{inputs.aws_region}}.amazonaws.com
REPOSITORY: ${{ inputs.repository }}
IMAGE_TAG: ${{ inputs.image_tag }}
with:
context: ${{ inputs.working_directory }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: $REGISTRY/$REPOSITORY:$IMAGE_TAG
tags: ${{inputs.aws_account_id}}.dkr.ecr.${{inputs.aws_region}}.amazonaws.com/${{ inputs.repository }}:${{ inputs.image_tag }}
file: ${{ inputs.working_directory }}/${{ inputs.dockerfile }}
6 changes: 1 addition & 5 deletions actions/push_on_ecr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,10 @@ runs:

- name: Build and push
uses: docker/build-push-action@v5
env:
REGISTRY: ${{inputs.aws_account_id}}.dkr.ecr.${{inputs.aws_region}}.amazonaws.com
REPOSITORY: ${{ inputs.repository }}
IMAGE_TAG: ${{ inputs.image_tag }}
with:
context: ${{ inputs.working_directory }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: $REGISTRY/$REPOSITORY:$IMAGE_TAG
tags: ${{inputs.aws_account_id}}.dkr.ecr.${{inputs.aws_region}}.amazonaws.com/${{ inputs.repository }}:${{ inputs.image_tag }}
file: ${{ inputs.working_directory }}/${{ inputs.dockerfile }}

0 comments on commit 9700733

Please sign in to comment.