2020-06-20 16:01:27 -05:00
|
|
|
name: Build and Publish
|
2020-06-10 18:43:07 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-06-19 11:41:53 -05:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- openj9
|
|
|
|
- openj9-nightly
|
|
|
|
- adopt11
|
|
|
|
- adopt13
|
2020-08-27 18:49:24 -05:00
|
|
|
- adopt14
|
2020-06-19 11:41:53 -05:00
|
|
|
tags:
|
2020-06-19 13:15:23 -05:00
|
|
|
- "[0-9]+.[0-9]+.[0-9]+"
|
|
|
|
- "[0-9]+.[0-9]+.[0-9]+-openj9"
|
|
|
|
- "[0-9]+.[0-9]+.[0-9]+-openj9-nightly"
|
|
|
|
- "[0-9]+.[0-9]+.[0-9]+-adopt11"
|
|
|
|
- "[0-9]+.[0-9]+.[0-9]+-adopt13"
|
2020-08-27 18:49:24 -05:00
|
|
|
- "[0-9]+.[0-9]+.[0-9]+-adopt14"
|
2020-06-10 18:43:07 -05:00
|
|
|
|
|
|
|
jobs:
|
2020-07-11 14:09:08 -05:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
tests/test.sh
|
2020-06-10 18:43:07 -05:00
|
|
|
build:
|
2020-07-11 14:09:08 -05:00
|
|
|
needs:
|
|
|
|
- test
|
2020-06-10 18:43:07 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build and push Docker images
|
|
|
|
uses: docker/build-push-action@v1.1.0
|
|
|
|
with:
|
|
|
|
repository: itzg/minecraft-server
|
|
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
tag_with_ref: true
|
2020-06-26 17:17:33 -05:00
|
|
|
tag_with_sha: false
|
2020-06-10 18:43:07 -05:00
|
|
|
cache_froms: itzg/minecraft-server:latest
|
|
|
|
add_git_labels: true
|
2020-07-12 11:36:31 -05:00
|
|
|
labels: org.opencontainers.image.url=https://github.com/itzg/docker-minecraft-server,org.opencontainers.image.documentation=https://github.com/itzg/docker-minecraft-server
|
2020-06-20 15:35:37 -05:00
|
|
|
push: true
|