Added GitHub workflows (#81)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2020-07-03 10:30:23 -05:00
1 parent 24c7a2ca7d
commit b9478d5e2f
5 files changed
+116

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
name: Build
on:
push:
branches:
- master
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
tests/test.sh
build:
needs: [test]
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-bedrock-server
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_with_ref: true
tag_with_sha: false
cache_froms: itzg/minecraft-bedrock-server:latest
add_git_labels: true
push: false
+16
View File
@@ -0,0 +1,16 @@
name: Validate PR
on:
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
tests/test.sh