This is an automated email from the ASF dual-hosted git repository.
agrove pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git
The following commit(s) were added to refs/heads/main by this push:
new 9d8730d8 chore: fix docker-publish attempt 1 (#851)
9d8730d8 is described below
commit 9d8730d8ac7bfeb3656ff57968644028323b364b
Author: Andy Grove <[email protected]>
AuthorDate: Tue Aug 20 11:10:15 2024 -0600
chore: fix docker-publish attempt 1 (#851)
* fix docker-publish
* add java distribution
---
.github/workflows/docker-publish.yml | 68 +++++++++++++++++++-----------------
kube/Dockerfile | 2 +-
2 files changed, 36 insertions(+), 34 deletions(-)
diff --git a/.github/workflows/docker-publish.yml
b/.github/workflows/docker-publish.yml
index daa6db32..ff328416 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -28,36 +28,38 @@ on:
- '*.*.*-rc*'
- 'test-docker-publish-*'
-docker:
- name: Docker
- runs-on: ubuntu-22.04
- permissions:
- contents: read
- packages: write
- steps:
- - name: Set up Java
- uses: actions/setup-java@v3
- with:
- java-version: '17'
- - 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
- - name: Echo Comet version
- run: echo "The current Comet version is ${{ env.COMET_VERSION }}"
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
- - name: Login to GitHub Container Registry
- uses: docker/login-action@v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - name: Build and push
- uses: docker/build-push-action@v6
- with:
- platforms: linux/amd64,linux/arm64
- push: true
- tags: apache/datafusion-comet:spark-3.4-scala-2.12-${{
env.COMET_VERSION }}
- file: kube/Dockerfile
+jobs:
+ docker:
+ name: Docker
+ runs-on: ubuntu-22.04
+ permissions:
+ contents: read
+ packages: write
+ steps:
+ - name: Set up Java
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ - 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
+ - name: Echo Comet version
+ run: echo "The current Comet version is ${{ env.COMET_VERSION }}"
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+ - name: Login to GitHub Container Registry
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Build and push
+ uses: docker/build-push-action@v6
+ with:
+ platforms: linux/amd64,linux/arm64
+ push: true
+ tags: apache/datafusion-comet:spark-3.4-scala-2.12-${{
env.COMET_VERSION }}
+ file: kube/Dockerfile
diff --git a/kube/Dockerfile b/kube/Dockerfile
index 4a95f6eb..a46c328a 100644
--- a/kube/Dockerfile
+++ b/kube/Dockerfile
@@ -65,4 +65,4 @@ ENV SCALA_VERSION=2.12
USER root
# ntoe the use of a wildcard in the file name so that this works with both
snapshot and final release versions
-COPY --from=builder
/comet/spark/target/comet-spark-spark${SPARK_VERSION}_$SCALA_VERSION-0.2.0*.jar
$SPARK_HOME/jars
\ No newline at end of file
+COPY --from=builder
/comet/spark/target/comet-spark-spark${SPARK_VERSION}_$SCALA_VERSION-0.2.0*.jar
$SPARK_HOME/jars
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]