single docker build file

This commit is contained in:
Jan Prochazka 2022-09-28 20:37:32 +02:00
parent cdd4382266
commit 5aff68d313

View File

@ -35,8 +35,11 @@ jobs:
flavor: | flavor: |
latest=false latest=false
tags: | tags: |
type=match,pattern=\d+.\d+.\d+,suffix=-beta type=match,pattern=\d+.\d+.\d+,suffix=-beta,enable=${{ includes(tag, '-docker.') || includes(tag, '-beta.') }}
type=raw,value=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 - name: Docker alpine meta
id: alpmeta id: alpmeta
@ -47,8 +50,11 @@ jobs:
flavor: | flavor: |
latest=false latest=false
tags: | tags: |
type=match,pattern=\d+.\d+.\d+,suffix=-beta-alpine type=match,pattern=\d+.\d+.\d+,suffix=-beta-alpine,enable=${{ includes(tag, '-docker.') || includes(tag, '-beta.') }}
type=raw,value=beta-alpine 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 - name: Use Node.js 14.x
uses: actions/setup-node@v1 uses: actions/setup-node@v1
@ -88,7 +94,7 @@ jobs:
push: true push: true
context: ./docker context: ./docker
file: ./docker/Dockerfile-alpine file: ./docker/Dockerfile-alpine
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.alpmeta.outputs.tags }}
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
# - name: Build docker image # - name: Build docker image