Skip to content

Commit

Permalink
(TMP) github actions: try image build with docker
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Adam <[email protected]>
  • Loading branch information
obnoxxx committed Feb 7, 2021
1 parent 6ce11d1 commit 8a5befd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ jobs:
# using podman explicity for the push job
run: make CONTAINER_CMD=podman image-build || df -h

dockerbuild:
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: check free space
run: df -h
- name: build container image
# note: forcing use of podman here since we are
# using podman explicity for the push job
run: make CONTAINER_CMD=docker image-build || df -h

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

0 comments on commit 8a5befd

Please sign in to comment.