Skip to content

Commit 89ecda4

Browse files
committed
update actions
1 parent ec8edd2 commit 89ecda4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020

2121
- name: build
2222
run: dotnet build
23-
working-directory: ./src
23+
working-directory: .
2424

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Build container
22
permissions:
33
packages: write
44
contents: write
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/checkout@v3
3535
with:
3636
ref: refs/tags/${{ github.event.inputs.version }}
37-
37+
3838
# Assign environment variables used in subsequent steps
3939
- name: Env variable assignment
4040
run: echo "image_repository_name=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
@@ -49,13 +49,14 @@ jobs:
4949
echo "TAG_NAME=${{ github.event.inputs.version }}" >> $GITHUB_ENV
5050
fi;
5151
52+
# Authenticate, build and push to GitHub Container Registry (ghcr.io)
5253
- name: Login to GitHub Container Registry
5354
uses: docker/login-action@v3
5455
with:
5556
registry: ghcr.io
56-
username: ${{ github.actor }}
57+
username: ${{ github.repository_owner }}
5758
password: ${{ secrets.GITHUB_TOKEN }}
58-
59+
5960
# Build and push new docker image, skip for manual redeploy other than 'latest'
6061
- name: Build and push Docker images
6162
uses: docker/build-push-action@v6
@@ -65,3 +66,4 @@ jobs:
6566
context: .
6667
push: true
6768
tags: ghcr.io/${{ env.image_repository_name }}:${{ env.TAG_NAME }}
69+

0 commit comments

Comments
 (0)