From 50f27ffb82ccca984d6a367a64e7c99893701a7a Mon Sep 17 00:00:00 2001 From: baiyangtx Date: Tue, 17 Oct 2023 17:02:55 +0800 Subject: [PATCH] test docker ci --- .github/workflows/docker-images.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 5caf73df7f..46b50e2724 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -145,8 +145,15 @@ jobs: - name: Build optimizer module with Maven run: mvn clean install -pl 'ams/optimizer/flink-optimizer' -am -e ${OPTIMIZER_FLINK} -DskipTests -B -ntp + - name: Set ENV Amoro version + run: | + AMORO_VERSION=`cat ./pom.xml | grep 'amoro-parent' -C 3 | grep -Eo '.*' | awk -F'[><]' '{print $3}'` \ + && echo "AMORO_VERSION=${AMORO_VERSION}" >> $GITHUB_ENV + - name: Build and Push Flink Optimizer Docker Image uses: docker/build-push-action@v4 + env: + AMORO_VERSION= with: context: . push: true @@ -155,3 +162,4 @@ jobs: tags: ${{ steps.meta.outputs.tags }} build-args: | FLINK_VERSION=${{ matrix.flink }} + OPTIMIZER_JOB=ams/optimizer/flink-optimizer/target/flink-optimizer-${AMORO_VERSION}-jar-with-dependencies.jar