Merge pull request #26 from dixi83/fix/build-branch #1
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: Docker Build Master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_docker: | |
name: Build Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and tag Docker image (latest) | |
run: | | |
docker buildx create --use | |
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 . \ | |
-t ghcr.io/${{ github.repository }}:latest \ | |
--push |