Skip to content

Commit

Permalink
ci: trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-the-nardo committed Nov 9, 2024
1 parent 4761333 commit 8e66998
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-spark-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ jobs:
echo "Changed files: $CHANGED_FILES"
SUBFOLDERS=$(echo "$CHANGED_FILES" | grep '^spark-jobs/[^/]\+/.*\.py$' | awk -F/ '{print $2}' | sort | uniq)
echo "SUBFOLDERS=$SUBFOLDERS" >> $GITHUB_ENV
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKERHUB_PASSWORD }}
password: ${{ secrets.DOCKERHUB_USERNAME }}

- name: Build and deploy Docker images
if: env.SUBFOLDERS != ''
env:
SUBFOLDERS: ${{ env.SUBFOLDERS }}
run: |
# Log in to Docker Hub using GitHub Secrets
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
# Loop over each changed subfolder and build/push the Docker image
for SUBFOLDER in $SUBFOLDERS; do
echo "Processing subfolder: $SUBFOLDER"
Expand Down
2 changes: 1 addition & 1 deletion spark-jobs/brazilian-finder/brazilian-finder_spark.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def spark_job(spark: SparkSession, params, *args, **kwargs):
ON e.email_lower LIKE CONCAT('%', w.word, '%')
""")

# Write to silver delta table as a .txt file with or igin al emails
# Write to silver delta table as a .txt file with or igin al emails
spark.sql(f"""
INSERT OVERWRITE TEXT.`{s3_output_path}`
SELECT email_tel
Expand Down

0 comments on commit 8e66998

Please sign in to comment.