mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 05:36:56 +00:00
refactor: release workflows
Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
This commit is contained in:
12
.github/workflows/release-docker.yml
vendored
12
.github/workflows/release-docker.yml
vendored
@@ -1,11 +1,19 @@
|
||||
name: "Release : Docker"
|
||||
|
||||
on:
|
||||
# Triggered manually
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Docker image tag"
|
||||
required: true
|
||||
# Triggered by release-nocodb.yml
|
||||
workflow_call:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Docker image tag"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
buildx:
|
||||
@@ -59,13 +67,13 @@ jobs:
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ${{ env.working-directory }}
|
||||
build-args: NC_VERSION=${{ github.event.inputs.tag }}
|
||||
build-args: NC_VERSION=${{ github.event.inputs.tag || inputs.tag }}
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new
|
||||
push: true
|
||||
tags: |
|
||||
nocodb/nocodb:${{ github.event.inputs.tag }}
|
||||
nocodb/nocodb:${{ github.event.inputs.tag || inputs.tag }}
|
||||
nocodb/nocodb:latest
|
||||
|
||||
# Temp fix
|
||||
|
||||
Reference in New Issue
Block a user