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

View File

@ -1,5 +1,3 @@
# This is a basic workflow to help you get started with Actions
name: Build and Publish name: Build and Publish
on: on:
@ -16,8 +14,6 @@ on:
- "[0-9]+.[0-9]+.[0-9]+-openj9-nightly" - "[0-9]+.[0-9]+.[0-9]+-openj9-nightly"
- "[0-9]+.[0-9]+.[0-9]+-adopt11" - "[0-9]+.[0-9]+.[0-9]+-adopt11"
- "[0-9]+.[0-9]+.[0-9]+-adopt13" - "[0-9]+.[0-9]+.[0-9]+-adopt13"
pull_request:
branches: [ master ]
jobs: jobs:
build: build:

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