From 2241ba88199c6f41ead7b73a0dc8f1deec1c8e94 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Wed, 10 Jun 2020 18:43:07 -0500 Subject: [PATCH] Added build image action --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..ca62ce4c --- /dev/null +++ b/.github/workflows/main.yml @@ -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