Build and Push #731
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }}" |