Added build image action

This commit is contained in:
Geoff Bourne 2020-06-10 18:43:07 -05:00 committed by GitHub
parent 3cf58e3caf
commit 2241ba8819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,28 @@
# This is a basic workflow to help you get started with Actions
name: build
on:
push:
branches: [ master ]
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
push: false