diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 204585c..cefda1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,8 @@ jobs: push-java-docker-image: runs-on: ubuntu-latest steps: - - run: echo "APP_VERSION=$(echo ${{ github.event.release.name }} | cut -d'v' -f 2)" >> $GITHUB_ENV + - id: get-release-version + run: echo "version=$(echo ${{ github.event.release.name }} | cut -d'v' -f 2)" >> "$GITHUB_OUPUT" - uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -38,11 +39,12 @@ jobs: with: file: Dockerfile.jvm push: true - tags: lgdd/liferay-starter:latest-jvm,lgdd/liferay-starter:$APP_VERSION-jvm + tags: lgdd/liferay-starter:latest-jvm,lgdd/liferay-starter:${{ steps.get-release-version.version }}-jvm push-native-docker-image: runs-on: ubuntu-latest steps: - - run: echo "APP_VERSION=$(${{ github.event.release.name }} | cut -d'v' -f 2)" >> $GITHUB_ENV + - id: get-release-version + run: echo "version=$(echo ${{ github.event.release.name }} | cut -d'v' -f 2)" >> "$GITHUB_OUPUT" - uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -58,4 +60,4 @@ jobs: with: file: Dockerfile.native push: true - tags: lgdd/liferay-starter:latest,lgdd/liferay-starter:$APP_VERSION \ No newline at end of file + tags: lgdd/liferay-starter:latest,lgdd/liferay-starter:${{ steps.get-release-version.version }} \ No newline at end of file