2020-06-10 23:43:07 +00:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
2020-06-20 21:01:27 +00:00
|
|
|
name: Build and Publish
|
2020-06-10 23:43:07 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-06-19 16:41:53 +00:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- openj9
|
|
|
|
- openj9-nightly
|
|
|
|
- adopt11
|
|
|
|
- adopt13
|
|
|
|
tags:
|
2020-06-19 18:15:23 +00: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-06-10 23:43:07 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
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
|
|
|
|
tag_with_sha: true
|
|
|
|
cache_froms: itzg/minecraft-server:latest
|
|
|
|
add_git_labels: true
|
2020-06-20 20:35:37 +00:00
|
|
|
push: true
|