Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeViper authored Nov 10, 2024
1 parent 5d7c4ed commit 67e0e0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

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

jobs:
build:
Expand All @@ -16,7 +16,7 @@ jobs:

- name: Get Short SHA
id: short-sha
run: echo "::set-output name=short_sha::${GITHUB_SHA::7}"
run: echo "short_sha=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT

- name: Modify asset versions
uses: mingjun97/file-regex-replace@v1
Expand Down Expand Up @@ -100,8 +100,8 @@ jobs:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-${{ steps.short-sha.outputs.short_sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name | toLower }}-${{ steps.short-sha.outputs.short_sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name | toLower }}-latest
labels: |
org.opencontainers.image.source=${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}

0 comments on commit 67e0e0c

Please sign in to comment.