Skip to content

Commit

Permalink
ci(docker): build and push images for pull requests (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb authored Jan 11, 2023
1 parent 15d6cf5 commit 280b3a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
tags:
- v*
pull_request_target:
types:
- opened
- synchronize
permissions:
contents: read
env:
Expand All @@ -22,7 +26,6 @@ jobs:
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.1.0
- uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1
Expand All @@ -43,6 +46,7 @@ jobs:
# disabled if major zero
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
type=ref,event=branch
type=ref,event=pr
- uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0
with:
context: .
Expand Down

0 comments on commit 280b3a1

Please sign in to comment.