Skip to content

Commit

Permalink
fix: issue/1 entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jpradoar authored Nov 16, 2024
1 parent 54ecf99 commit a2b4225
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
env:
REPO_USER: 'jpradoar'
REPO_APP: 'ga-semanticversion'
BUILD_CONTEXT: './'


jobs:
Expand All @@ -36,10 +37,18 @@ jobs:
echo "LAST_VERSION=$LastVersion " >> "$GITHUB_OUTPUT"
- name: Generate new version with local file
id: nversion
uses: jpradoar/[email protected]
with:
COMMIT_MSG: '${{ github.event.head_commit.message }}'
COMMIT_MSG: ${{ github.event.head_commit.message }}
VERSION: ${{ steps.get_last_version.outputs.LAST_VERSION }}

- name: Show new version
run: echo "New version ${{ steps.nversion.outputs.NEW_VERSION }}"

- name: Build and push
uses: docker/build-push-action@v4
with:
context: ${{ env.BUILD_CONTEXT }}
push: true
tags: jpradoar/${{ env.REPO_APP }}:${{ steps.nversion.outputs.NEW_VERSION }}

0 comments on commit a2b4225

Please sign in to comment.