Skip to content

Commit

Permalink
ci: update step to extract image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
felipementel authored Oct 16, 2023
1 parent 6fdd7c3 commit 16dee01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- main
workflow_dispatch:

env:
DAY_OF_WEEK:

jobs:
build:
name: Analyze by SonarCloud
Expand Down Expand Up @@ -89,6 +92,7 @@ jobs:
$version = $xml.Project.PropertyGroup.Version
echo $version
export DockerTag=$version
- name: Build and push
uses: docker/build-push-action@v5
Expand All @@ -99,4 +103,4 @@ jobs:
platforms: ${{ matrix.platforms }}
tags: |
felipementel/cachorro.api:latest
felipementel/cachorro.api:$version
felipementel/cachorro.api:$DockerTag

0 comments on commit 16dee01

Please sign in to comment.