Auto-merging via docker-versions-create

This commit is contained in:
Geoff Bourne
2021-12-10 07:57:27 -06:00
4 changed files with 8 additions and 27 deletions

View File

@@ -19,18 +19,7 @@ env:
IMAGE_TO_TEST: itzg/minecraft-server:test-${{ github.repository_owner }}-${{ github.run_id }}
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.4.0
- name: Run tests
run: |
tests/test.sh
build:
needs:
- test
runs-on: ubuntu-20.04
steps:
@@ -65,7 +54,7 @@ jobs:
- name: Build for test
uses: docker/build-push-action@v2.7.0
if: github.ref_name == 'master'
if: github.ref_name == 'java8'
with:
context: .
platforms: linux/amd64
@@ -78,9 +67,11 @@ jobs:
cache-to: type=gha,mode=max
- name: Run tests
if: github.ref_name == 'master'
if: github.ref_name == 'java8'
run: |
tests/test.sh
env:
MINECRAFT_VERSION: 1.12.2
- name: Build and push
id: docker_build