Skip to content

Commit

Permalink
Update push-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
felipementel authored Oct 16, 2023
1 parent 50b6b85 commit 9ef54f6
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,12 @@ jobs:
$xml = [Xml] (Get-Content ./src/DEPLOY.Cachorro.Api/DEPLOY.Cachorro.Api.csproj)
$version = $xml.Project.PropertyGroup.Version
echo "tag=$version" >> "$GITHUB_OUTPUT"
echo "tag=$version" >> "$GITHUB_ENV"
echo "Tag variable: " $tag
echo "Version variable: "$version
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./src/
file: ./src/DEPLOY.Cachorro.Api/Dockerfile
push: true
platforms: ${{ matrix.platforms }}
tags: |
felipementel/cachorro.api:latest
felipementel/cachorro.api:${{ steps.get-version.outputs.tag }}
- name: Get-Version from csproj
shell: pwsh
run: |
echo ${{ steps.get-version.outputs.tag }}
echo $tag

0 comments on commit 9ef54f6

Please sign in to comment.