Skip to content

Commit

Permalink
ci: use github_output instead of github_env
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Apr 16, 2024
1 parent 975a4a4 commit 5a45ff8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -58,4 +60,4 @@ jobs:
with:
file: Dockerfile.native
push: true
tags: lgdd/liferay-starter:latest,lgdd/liferay-starter:$APP_VERSION
tags: lgdd/liferay-starter:latest,lgdd/liferay-starter:${{ steps.get-release-version.version }}

0 comments on commit 5a45ff8

Please sign in to comment.