Skip to content

Commit

Permalink
github actions: test container build with podman on PRs
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Adam <obnox@redhat.com>
  • Loading branch information
obnoxxx committed Feb 8, 2021
1 parent 062ef68 commit 81047f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ jobs:
- name: Run checks
run: make check

podmanbuild:
runs-on: ubuntu-latest
# don't run on push, since the "push" job contains the
# image build step, so no need to do it twice.
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v2
- name: build container image
# note: forcing use of podman here since we are
# using podman explicity for the push job
run: make CONTAINER_CMD=podman image-build

# push the container to quay.io - only for pushes, not PRs
push:
needs: [build, check]
Expand Down

0 comments on commit 81047f5

Please sign in to comment.