Skip to content

Commit

Permalink
Change optimize command
Browse files Browse the repository at this point in the history
  • Loading branch information
bifrurcated committed Jan 14, 2024
1 parent d16d59a commit 77dad76
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@ jobs:
- name: Build image
run: mvn spring-boot:build-image -Ddockerfile=Dockerfile.layers -DskipTests

- name: Get project version
- name: Get project artifactId and version
run: |
artifactId=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' exec:exec)
version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' exec:exec)
echo "VERSION=${version}" >> $GITHUB_ENV
- name: Set image name
run: echo "IMAGE_NAME=wallet:${VERSION}" >> $GITHUB_ENV
image_name="${artifactId}:${version}"
echo "IMAGE_NAME=${image_name}" >> $GITHUB_ENV
- name: print IMAGE_NAME
run: echo ${IMAGE_NAME}
Expand Down

0 comments on commit 77dad76

Please sign in to comment.