From 5aff68d313b0435683b7735131dc99aff42c88e8 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Wed, 28 Sep 2022 20:37:32 +0200 Subject: [PATCH] single docker build file --- .github/workflows/build-docker-beta.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-docker-beta.yaml b/.github/workflows/build-docker-beta.yaml index 1eb3f2d3..8ef4c460 100644 --- a/.github/workflows/build-docker-beta.yaml +++ b/.github/workflows/build-docker-beta.yaml @@ -35,8 +35,11 @@ jobs: flavor: | latest=false tags: | - type=match,pattern=\d+.\d+.\d+,suffix=-beta - type=raw,value=beta + type=match,pattern=\d+.\d+.\d+,suffix=-beta,enable=${{ includes(tag, '-docker.') || includes(tag, '-beta.') }} + type=raw,value=beta,enable=${{ includes(tag, '-docker.') || includes(tag, '-beta.') }} + + type=match,pattern=\d+.\d+.\d+,enable=${{ !includes(tag, '-docker.') && !includes(tag, '-beta.') }} + type=raw,value=latest,enable=${{ !includes(tag, '-docker.') && !includes(tag, '-beta.') }} - name: Docker alpine meta id: alpmeta @@ -47,8 +50,11 @@ jobs: flavor: | latest=false tags: | - type=match,pattern=\d+.\d+.\d+,suffix=-beta-alpine - type=raw,value=beta-alpine + type=match,pattern=\d+.\d+.\d+,suffix=-beta-alpine,enable=${{ includes(tag, '-docker.') || includes(tag, '-beta.') }} + type=raw,value=beta-alpine,enable=${{ includes(tag, '-docker.') || includes(tag, '-beta.') }} + + type=match,pattern=\d+.\d+.\d+,suffix=-alpine,enable=${{ !includes(tag, '-docker.') && !includes(tag, '-beta.') }} + type=raw,value=alpine,enable=${{ !includes(tag, '-docker.') && !includes(tag, '-beta.') }} - name: Use Node.js 14.x uses: actions/setup-node@v1 @@ -88,7 +94,7 @@ jobs: push: true context: ./docker file: ./docker/Dockerfile-alpine - tags: ${{ steps.meta.outputs.tags }} + tags: ${{ steps.alpmeta.outputs.tags }} platforms: linux/amd64,linux/arm64,linux/arm/v7 # - name: Build docker image