Skip to content

Commit

Permalink
Merge pull request #2 from vflaux/dev
Browse files Browse the repository at this point in the history
fix ci
  • Loading branch information
vflaux authored Jan 20, 2023
2 parents d5b4d2f + a3f1f13 commit 0efd6c2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Build and Publish

on:
pull_request:
types: ["opened", "synchronize"]
release:
types: ["published"]

jobs:
build-binary:
Expand Down Expand Up @@ -51,6 +53,7 @@ jobs:
name: Publish binaries to release
if: github.event_name == 'release'
runs-on: ubuntu-latest
needs: build-binary
steps:
- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -90,10 +93,17 @@ jobs:
type=semver,pattern={{version}}
type=sha
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push
- name: Build image
uses: docker/build-push-action@v3
with:
context: .
Expand Down

0 comments on commit 0efd6c2

Please sign in to comment.