Merge pull request #865 from Freika/feature/parallel-docker-image-builds

Feature/parallel docker image builds
This commit is contained in:
Evgenii Burmakin 2025-02-12 22:58:51 +01:00 committed by GitHub
commit 482cc89a42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,8 +11,11 @@ on:
types: [created]
jobs:
build-and-push-docker:
build-and-push:
runs-on: ubuntu-22.04
strategy:
matrix:
platform: ["linux/amd64", "linux/arm64", "linux/arm/v7", "linux/arm/v6"]
steps:
- name: Checkout code
uses: actions/checkout@v4
@ -51,10 +54,7 @@ jobs:
# Add :rc tag for pre-releases
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
TAGS="${TAGS},freikin/dawarich:rc"
fi
# Add :latest tag only if release is not a pre-release
if [ "${{ github.event.release.prerelease }}" != "true" ]; then
else
TAGS="${TAGS},freikin/dawarich:latest"
fi
@ -67,6 +67,6 @@ jobs:
file: ./docker/Dockerfile.dev
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
platforms: ${{ matrix.platform }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache