message: Use latest tag for reward program images
diff: @@ -42,10 +42,10 @@ jobs:
  fi
  echo "RULE_NAME"=${RULE_NAME} >> $GITHUB_ENV
  - - name: Convert rule name (pascal case) to image tag (snake case)
  + - name: Convert rule name (pascal case) to ECR repo name (snake case)
  shell: bash
  run: |
  - echo "IMAGE_TAG=`echo ${RULE_NAME} | sed -r 's/([A-Z])/_\L\1/g' | sed 's/^_//'`" >> $GITHUB_ENV
  + echo "ECR_REPOSITORY=`echo ${RULE_NAME} | sed -r 's/([A-Z])/_\L\1/g' | sed 's/^_//'`" >> $GITHUB_ENV
  - name: Login to Amazon ECR
  id: login-ecr
  @@ -56,5 +56,5 @@ jobs:
  ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
  working-directory: ./packages/cardpay-reward-programs
  run: |
  - docker build --build-arg rule=$RULE_NAME -t $ECR_REGISTRY/$IMAGE_TAG:$IMAGE_TAG .
  - docker push $ECR_REGISTRY/$IMAGE_TAG:$IMAGE_TAG
  + docker build --build-arg rule=$RULE_NAME -t $ECR_REGISTRY/$ECR_REPOSITORY:latest .
  + docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
  