Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test new ci #6

Merged
merged 13 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,24 @@ jobs:
steps:
- name: Checkout repo
uses: actions/[email protected]
with:
fetch-depth: 0

#- name: Set base branch
# id: base_branch
# run: echo "::set-output name=base::$(git merge-base HEAD ${{ github.event.before }})"

- name: Add origin remote
id: main-remote
run: git fetch origin main:refs/remotes/origin/main

- name: Set base branch
id: base_branch
run: echo "::set-output name=base::$(git merge-base HEAD ${{ github.event.before }})"
- name: Add origin new
id: main-new
run: git rev-list --count origin/main..$(git branch --show-current)

- name: Check Dockerfile changes
id: check
run: echo "::set-output name=changed::$(if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q 'Dockerfile'; then echo true; else echo false; fi)"
run: echo "::set-output name=changed::$(if git diff --name-only remotes/origin/${{ github.base_ref }}..remotes/origin/${{ github.head_ref }} | grep -q 'Dockerfile'; then echo true; else echo false; fi)"

build-and-push-to-registry:
needs: check-dockerfile-changes
Expand Down
1 change: 1 addition & 0 deletions apps/spark/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ FROM tabulario/spark-iceberg:3.5.1_1.5.0
ENV SPARK_HOME /opt/spark

WORKDIR $SPARK_HOME

Loading