File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2020
2121 - name : build
2222 run : dotnet build
23- working-directory : ./src
23+ working-directory : .
2424
Original file line number Diff line number Diff line change 1- name : Release
1+ name : Build container
22permissions :
33 packages : write
44 contents : write
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
6566 context : .
6667 push : true
6768 tags : ghcr.io/${{ env.image_repository_name }}:${{ env.TAG_NAME }}
69+
You can’t perform that action at this time.
0 commit comments