Skip to content

Commit

Permalink
[awsreset-365]: workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-dvsa committed Oct 9, 2023
1 parent 533e13d commit e48e247
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/php-base-image-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ jobs:

- name: Login to Shared Core ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'


- name: Build the Docker image
run: |
Expand All @@ -68,6 +69,7 @@ jobs:
build=$(echo "$results" | jq -r '.build')
if [ "$build" == "true" ]; then
echo $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$repoName:$tag-$SHA
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$repoName:$tag-$SHA
else
echo "Not pushing - $repoName, build parameter equal to false"
Expand Down

0 comments on commit e48e247

Please sign in to comment.