Skip to content

Commit

Permalink
change ref_name to tag_name
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Oct 14, 2023
1 parent bf57be6 commit a955346
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

env:
IMAGE_NAME: dragonfruitdotnet/onionfruit-web:worker-linux-${{ github.ref_name }}
IMAGE_NAME: dragonfruitdotnet/onionfruit-web:worker-linux-${{ github.event.release.tag_name }}

steps:
- uses: actions/checkout@v4
Expand All @@ -31,7 +31,7 @@ jobs:
run: dotnet nuget update source github --username USERNAME --password ${{ github.token }} --store-password-in-clear-text

- name: Build Worker
run: dotnet publish -c Release -p:UseAppHost=false -p:Version=${{ github.ref_name }} DragonFruit.OnionFruit.Web.Worker
run: dotnet publish -c Release -p:UseAppHost=false -p:Version=${{ github.event.release.tag_name }} DragonFruit.OnionFruit.Web.Worker

- name: Docker Build and Push
uses: docker/build-push-action@v5
Expand All @@ -46,7 +46,7 @@ jobs:
runs-on: windows-latest

env:
IMAGE_NAME: dragonfruitdotnet/onionfruit-web:worker-windows-${{ github.ref_name }}
IMAGE_NAME: dragonfruitdotnet/onionfruit-web:worker-windows-${{ github.event.release.tag_name }}

steps:
- uses: actions/checkout@v4
Expand All @@ -59,7 +59,7 @@ jobs:
run: dotnet nuget update source github --username USERNAME --password ${{ github.token }} --store-password-in-clear-text

- name: Build Worker
run: dotnet publish -c Release -p:UseAppHost=false -p:Version=${{ github.ref_name }} DragonFruit.OnionFruit.Web.Worker
run: dotnet publish -c Release -p:UseAppHost=false -p:Version=${{ github.event.release.tag_name }} DragonFruit.OnionFruit.Web.Worker

- name: Docker Build
run: docker build -f DragonFruit.OnionFruit.Web.Worker\Dockerfile -t ${{ env.IMAGE_NAME }} --build-arg "IMAGE_VARIANT=7.0-nanoserver-ltsc2022" DragonFruit.OnionFruit.Web.Worker\bin\Release\net7.0\publish
Expand All @@ -81,4 +81,4 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Create MultiArch+MultiOS Manifest
run: docker buildx imagetools create -t dragonfruitdotnet/onionfruit-web:worker -t dragonfruitdotnet/onionfruit-web:worker-${{ github.ref_name }} dragonfruitdotnet/onionfruit-web:worker-windows-${{ github.ref_name }} dragonfruitdotnet/onionfruit-web:worker-linux-${{ github.ref_name }}
run: docker buildx imagetools create -t dragonfruitdotnet/onionfruit-web:worker -t dragonfruitdotnet/onionfruit-web:worker-${{ github.event.release.tag_name }} dragonfruitdotnet/onionfruit-web:worker-windows-${{ github.event.release.tag_name }} dragonfruitdotnet/onionfruit-web:worker-linux-${{ github.event.release.tag_name }}

0 comments on commit a955346

Please sign in to comment.