Skip to content

Update Docker and Github Workflows #22

Update Docker and Github Workflows

Update Docker and Github Workflows #22

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
push: true
cache-from: type=registry,ref=ghcr.io/tpc3/noa:buildcache
cache-to: type=registry,ref=ghcr.io/tpc3/noa:buildcache,mode=max
tags: ghcr.io/tpc3/noa:latest