Skip to content

Commit

Permalink
refactor(deploy): fix versioning Dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrizord committed Sep 1, 2024
1 parent c8e7893 commit 2fcc209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Ler a versão do arquivo pom.xml
# Ler a versão do arquivo pom.xml usando grep
- name: Extract version from pom.xml
id: extract_version
run: |
VERSION=$(xmllint --xpath "//*[local-name()='project']/*[local-name()='version']/text()" pom.xml)
VERSION=$(grep -m1 -oP '(?<=<version>)[^<]+' pom.xml)
echo "VERSION=$VERSION" >> $GITHUB_ENV
# Setup do QEMU para multi-plataforma
Expand Down

0 comments on commit 2fcc209

Please sign in to comment.