Skip to content

Commit

Permalink
[ci-skip] use workflow inputs in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eidottermihi committed Jan 13, 2023
1 parent e25df0f commit b8ab27a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Remove SNAPSHOT
if: github.event.inputs.snapshot-build == 'n'
run: |
mvn versions:set --batch-mode -DnewVersion=${{ env.RELEASE_VERSION }} -DprocessAllModules
mvn versions:set --batch-mode -DnewVersion=${{ github.event.inputs.release-tag }} -DprocessAllModules
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
Expand All @@ -49,15 +49,12 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_KEY }}

- name: Set Release version env variable
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Build and push app
uses: docker/build-push-action@v2
with:
context: ./ad2image-app
push: true
tags: itatm/ad2image:${{ env.RELEASE_VERSION }},itatm/ad2image:latest
tags: itatm/ad2image:${{ github.event.inputs.release-tag }},itatm/ad2image:latest

github-release:
name: Create Release
Expand Down

0 comments on commit b8ab27a

Please sign in to comment.