Skip to content

Commit

Permalink
fix envvars
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Dec 30, 2024
1 parent 3e17535 commit 129c8b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ github.env.DOTNET_TARGET_VER }}.x
dotnet-version: ${{ env.DOTNET_TARGET_VER }}.x

- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Image Build and Push
uses: docker/build-push-action@v6
with:
context: ${{ matrix.project.name }}/bin/Release/net${{ github.env.DOTNET_TARGET_VER }}/publish
context: ${{ matrix.project.name }}/bin/Release/net${{ env.DOTNET_TARGET_VER }}/publish
tags: dragonfruitdotnet/onionfruit-web:${{ matrix.project.tag-prefix }}linux
platforms: linux/arm64,linux/amd64
file: ${{ matrix.project.name }}/Dockerfile
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ github.env.DOTNET_TARGET_VER }}.x
dotnet-version: ${{ env.DOTNET_TARGET_VER }}.x

- uses: docker/login-action@v3
with:
Expand All @@ -78,7 +78,7 @@ jobs:
run: dotnet publish -c Release -p:UseAppHost=false -p:Version=${{ github.event.release.tag_name }} ${{ matrix.project.name }}

- name: Image Build
run: docker build -f ${{ matrix.project.name }}\Dockerfile -t ${{ env.DOCKER_TAG }} --build-arg "IMAGEVARIANT=nanoserver-ltsc2022" ${{ matrix.project.name }}\bin\Release\net${{ github.env.DOTNET_TARGET_VER }}\publish
run: docker build -f ${{ matrix.project.name }}\Dockerfile -t ${{ env.DOCKER_TAG }} --build-arg "IMAGEVARIANT=nanoserver-ltsc2022" ${{ matrix.project.name }}\bin\Release\net${{ env.DOTNET_TARGET_VER }}\publish

- name: Image Push
run: docker push ${{ env.DOCKER_TAG }}
Expand Down

0 comments on commit 129c8b3

Please sign in to comment.