Skip to content

Build and Push

Build and Push #767

Workflow file for this run

---
name: Build and Push
on:
push:
branches:
- 'master'
schedule:
- cron: '15 0 * * *' # Every day at 00:15
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push to Docker Hub
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
tags: mide/minecraft-overviewer:latest
build-args: |
GITHUB_REF="${{ github.ref }}"
GITHUB_REPOSITORY="${{ github.repository }}"
GITHUB_SHA="${{ github.sha }}"