mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
add workflow_dispatch to build
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME:
|
||||
${{ github.event_name != 'pull_request' && github.repository ||
|
||||
'windmill-labs/windmill-test' }}
|
||||
${{ github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' && github.repository || 'windmill-labs/windmill-test' }}
|
||||
DEV_SHA:
|
||||
${{ github.event_name != 'pull_request' && 'dev' || format('pr-{0}',
|
||||
github.event.number) }}
|
||||
${{ github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' && 'dev' || github.event.inputs.tag }}
|
||||
|
||||
name: Build windmill:main
|
||||
on:
|
||||
@@ -16,6 +14,17 @@ on:
|
||||
types: [opened, synchronize, reopened]
|
||||
paths:
|
||||
- "Dockerfile"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ee:
|
||||
description: 'Build EE image (true, false)'
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
tag:
|
||||
description: 'Tag the image'
|
||||
required: true
|
||||
default: 'test'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
@@ -26,10 +35,7 @@ permissions: write-all
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubicloud
|
||||
if:
|
||||
(github.event_name != 'issue_comment') ||
|
||||
(contains(github.event.comment.body, '/buildimage_all') ||
|
||||
contains(github.event.comment.body, '/buildimage_base'))
|
||||
if: (github.event_name != 'workflow_dispatch') || (github.event.inputs && !github.event.inputs.ee)
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -92,10 +98,7 @@ jobs:
|
||||
build_ee:
|
||||
runs-on: ubicloud
|
||||
if:
|
||||
(github.event_name != 'issue_comment') ||
|
||||
(contains(github.event.comment.body, '/buildimage_ee') ||
|
||||
contains(github.event.comment.body, '/buildimage_nsjail')) ||
|
||||
contains(github.event.comment.body, '/buildimage_all')
|
||||
(github.event_name != 'workflow_dispatch') || (github.event.inputs.ee)
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -450,10 +453,7 @@ jobs:
|
||||
needs: [build_ee]
|
||||
runs-on: ubicloud
|
||||
if:
|
||||
(github.event_name != 'issue_comment') || (github.event_name !=
|
||||
'pull_request') || (contains(github.event.comment.body,
|
||||
'/buildimage_nsjail') || contains(github.event.comment.body,
|
||||
'/buildimage_all'))
|
||||
(github.event_name != 'pull_request') && (github.event_name != 'workflow_dispatch')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -546,7 +546,7 @@ jobs:
|
||||
publish_ecr_s3:
|
||||
needs: [build_ee_nsjail]
|
||||
runs-on: ubicloud-standard-2-arm
|
||||
if: github.event_name != 'pull_request'
|
||||
if: (github.event_name != 'pull_request') && (github.event_name != 'workflow_dispatch')
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user