Skip to content

Commit

Permalink
Add running on pull_request events
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Mar 20, 2020
1 parent ab60be7 commit c40cc87
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI/CD

on:
push:
pull_request:
schedule:
- cron: '1 0 * * *'

Expand All @@ -13,9 +14,13 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Build Docker image
run: |
docker build . \
--file Dockerfile \
--tag lukasheinrich/folding:$GITHUB_SHA \
--compress
docker images
if: "!(startsWith(github.ref, 'refs/tags/'))"
uses: docker/build-push-action@v1
with:
repository: lukasheinrich/folding
dockerfile: Dockerfile
tag_with_sha: true
tag_with_ref: true
push: false
- name: List Built Images
run: docker images

0 comments on commit c40cc87

Please sign in to comment.