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 20
20
21
21
- name : build
22
22
run : dotnet build
23
- working-directory : ./src
23
+ working-directory : .
24
24
Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : Build container
2
2
permissions :
3
3
packages : write
4
4
contents : write
34
34
uses : actions/checkout@v3
35
35
with :
36
36
ref : refs/tags/${{ github.event.inputs.version }}
37
-
37
+
38
38
# Assign environment variables used in subsequent steps
39
39
- name : Env variable assignment
40
40
run : echo "image_repository_name=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
@@ -49,13 +49,14 @@ jobs:
49
49
echo "TAG_NAME=${{ github.event.inputs.version }}" >> $GITHUB_ENV
50
50
fi;
51
51
52
+ # Authenticate, build and push to GitHub Container Registry (ghcr.io)
52
53
- name : Login to GitHub Container Registry
53
54
uses : docker/login-action@v3
54
55
with :
55
56
registry : ghcr.io
56
- username : ${{ github.actor }}
57
+ username : ${{ github.repository_owner }}
57
58
password : ${{ secrets.GITHUB_TOKEN }}
58
-
59
+
59
60
# Build and push new docker image, skip for manual redeploy other than 'latest'
60
61
- name : Build and push Docker images
61
62
uses : docker/build-push-action@v6
65
66
context : .
66
67
push : true
67
68
tags : ghcr.io/${{ env.image_repository_name }}:${{ env.TAG_NAME }}
69
+
You can’t perform that action at this time.
0 commit comments