Skip to content

Commit 0efd6c2

Browse files
authored
Merge pull request #2 from vflaux/dev
fix ci
2 parents d5b4d2f + a3f1f13 commit 0efd6c2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build-and-publish.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Build and Publish
22

33
on:
44
pull_request:
5+
types: ["opened", "synchronize"]
56
release:
7+
types: ["published"]
68

79
jobs:
810
build-binary:
@@ -51,6 +53,7 @@ jobs:
5153
name: Publish binaries to release
5254
if: github.event_name == 'release'
5355
runs-on: ubuntu-latest
56+
needs: build-binary
5457
steps:
5558
- uses: actions/download-artifact@v3
5659
with:
@@ -90,10 +93,17 @@ jobs:
9093
type=semver,pattern={{version}}
9194
type=sha
9295
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+
93103
- name: Set up Docker Buildx
94104
uses: docker/setup-buildx-action@v2
95105

96-
- name: Build and push
106+
- name: Build image
97107
uses: docker/build-push-action@v3
98108
with:
99109
context: .

0 commit comments

Comments
 (0)