ci: changed gh actions to avoid image push on PR

This commit is contained in:
Geoff Bourne
2020-06-28 12:22:00 -05:00
parent a655fe860e
commit bbe930e552
2 changed files with 19 additions and 4 deletions

19
.github/workflows/pr.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: PR validation
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker image
uses: docker/build-push-action@v1.1.0
with:
tag_with_sha: true
cache_froms: itzg/minecraft-server:latest
push: false