Merge pull request #23 from Tawmy/main

Add arm64 to build action, fix branch names
This commit is contained in:
Enes Sadık Özbek 2023-06-18 19:19:58 +03:00 committed by GitHub
commit 438370c717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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