Skip to content

Commit

Permalink
[ci] Add option to build editions on manual dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Portnov <[email protected]>
  • Loading branch information
Taior committed Sep 6, 2024
1 parent 1804bec commit 002190e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflow_templates/build-and-test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ on:
comment_id:
description: 'Id of comment in issue where to put workflow run status'
required: false
editions:
description: 'Comma-separated list of editions to build'
required: false
type: string

env:
{!{ tmpl.Exec "werf_envs" | strings.Indent 2 }!}
Expand Down Expand Up @@ -95,7 +99,7 @@ jobs:
- git_info
- go_generate
- workflow_render
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.inputs.editions, 'EE') }}
env:
WERF_ENV: "EE"
{!{ tmpl.Exec "build_template" (slice $ctx "release") | strings.Indent 4 }!}
Expand All @@ -108,7 +112,7 @@ jobs:
- git_info
- go_generate
- workflow_render
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.inputs.editions, 'SE') }}
env:
WERF_ENV: "SE"
{!{ tmpl.Exec "build_template" (slice $ctx "release") | strings.Indent 4 }!}
Expand All @@ -121,7 +125,7 @@ jobs:
- git_info
- go_generate
- workflow_render
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.inputs.editions, 'BE') }}
env:
WERF_ENV: "BE"
{!{ tmpl.Exec "build_template" (slice $ctx "release") | strings.Indent 4 }!}
Expand All @@ -134,7 +138,7 @@ jobs:
- git_info
- go_generate
- workflow_render
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.inputs.editions, 'CE') }}
env:
WERF_ENV: "CE"
{!{ tmpl.Exec "build_template" (slice $ctx "release") | strings.Indent 4 }!}
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/build-and-test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ on:
comment_id:
description: 'Id of comment in issue where to put workflow run status'
required: false
editions:
description: 'Comma-separated list of editions to build'
required: false
type: string

env:

Expand Down Expand Up @@ -686,7 +690,7 @@ jobs:
- git_info
- go_generate
- workflow_render
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.inputs.editions, 'EE') }}
env:
WERF_ENV: "EE"
# <template: build_template>
Expand Down Expand Up @@ -1003,7 +1007,7 @@ jobs:
- git_info
- go_generate
- workflow_render
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.inputs.editions, 'SE') }}
env:
WERF_ENV: "SE"
# <template: build_template>
Expand Down Expand Up @@ -1320,7 +1324,7 @@ jobs:
- git_info
- go_generate
- workflow_render
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.inputs.editions, 'BE') }}
env:
WERF_ENV: "BE"
# <template: build_template>
Expand Down Expand Up @@ -1637,7 +1641,7 @@ jobs:
- git_info
- go_generate
- workflow_render
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || contains(github.event.inputs.editions, 'CE') }}
env:
WERF_ENV: "CE"
# <template: build_template>
Expand Down

0 comments on commit 002190e

Please sign in to comment.