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

chore: Use Git tag as Comet version when publishing Docker images #857

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@@ -44,8 +44,7 @@ jobs:
- name: Extract Comet version
id: extract_version
run: |
COMET_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "COMET_VERSION=$COMET_VERSION" >> $GITHUB_ENV
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$COMET_VERSION somehow evaluated to 1 here

@andygrove
Copy link
Member Author

@edmondop Could you review?

@andygrove andygrove changed the title chore: Simplify maven version extraction chore: Use Git tag as Comet version when publishing Docker images Aug 21, 2024
COMET_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "COMET_VERSION=$COMET_VERSION" >> $GITHUB_ENV
# use the tag that triggered this workflow as the Comet version e.g. 0.2.0-rc1
echo "COMET_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this to fix ghcr.io/apache/datafusion-comet:spark-3.4-scala-2.12-1?

@andygrove andygrove merged commit cddebc0 into apache:main Aug 21, 2024
75 checks passed
@andygrove andygrove deleted the docker-publish-fix-3 branch December 3, 2024 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants