Add arm64 to build action, fix branch names

This commit is contained in:
Tawmy 2023-06-18 12:55:13 +02:00
parent c8305ce533
commit 595dac15da
No known key found for this signature in database

View file

@ -3,22 +3,26 @@ name: Docker Image CI
on:
push:
branches:
- master
- main
tags:
- '*'
pull_request:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
-
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
@ -49,6 +53,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: src/
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}