Skip to content

Commit

Permalink
test docker ci
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyangtx committed Oct 17, 2023
1 parent 693ff62 commit 50f27ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<version>.*</version>' | 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
Expand All @@ -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

0 comments on commit 50f27ff

Please sign in to comment.