Skip to content

Commit

Permalink
Fix release step
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio committed Dec 1, 2024
1 parent 5fd8e43 commit de15a25
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: ${{ github.repository | lower }}

permissions:
contents: write
packages: write

jobs:
build-artifacts:
Expand Down Expand Up @@ -38,9 +42,6 @@ jobs:
build-and-push-image:
name: Push Docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
Expand All @@ -63,6 +64,7 @@ jobs:
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest
- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand All @@ -80,7 +82,7 @@ jobs:
- name: Get Docker Image Info
id: image-info
run: |
echo "image=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
echo "image=${{ env.REGISTRY }}/${{ github.repository | lower }}:${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
- name: Update Release Notes
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit de15a25

Please sign in to comment.