File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ name: Build and Publish
2
2
3
3
on :
4
4
pull_request :
5
+ types : ["opened", "synchronize"]
5
6
release :
7
+ types : ["published"]
6
8
7
9
jobs :
8
10
build-binary :
51
53
name : Publish binaries to release
52
54
if : github.event_name == 'release'
53
55
runs-on : ubuntu-latest
56
+ needs : build-binary
54
57
steps :
55
58
- uses : actions/download-artifact@v3
56
59
with :
@@ -90,10 +93,17 @@ jobs:
90
93
type=semver,pattern={{version}}
91
94
type=sha
92
95
96
+ - name : Login to GitHub Container Registry
97
+ uses : docker/login-action@v2
98
+ with :
99
+ registry : ghcr.io
100
+ username : ${{ github.repository_owner }}
101
+ password : ${{ secrets.GITHUB_TOKEN }}
102
+
93
103
- name : Set up Docker Buildx
94
104
uses : docker/setup-buildx-action@v2
95
105
96
- - name : Build and push
106
+ - name : Build image
97
107
uses : docker/build-push-action@v3
98
108
with :
99
109
context : .
You can’t perform that action at this time.
0 commit comments