Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
freol35241 committed May 25, 2024
1 parent 59bb932 commit d305228
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,24 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Generating metadata
id: docker_metadata
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
latest
${{ github.event.release.tag_name }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
file: Dockerfile
push: true
tags: |
ghcr.io/mo-rise/porla-nmea:latest
ghcr.io/mo-rise/porla-nmea:${{ github.event.release.tag_name }}
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit d305228

Please sign in to comment.