mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 12:43:58 +00:00
single docker build file
This commit is contained in:
16
.github/workflows/build-docker-beta.yaml
vendored
16
.github/workflows/build-docker-beta.yaml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user