Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/distroless_dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Distroless (Dart)

on:
workflow_dispatch:
inputs:
replace:
description: Replace the existing distroless image
type: boolean
default: false
pull_request:
paths:
- 'apps/distroless/bin/list_sdks.dart'
Expand Down Expand Up @@ -113,7 +118,7 @@ jobs:
- name: Build and Push Image (builder)
id: build-push-builder
# Only run if the builder image is needed or if the workflow is manually triggered
if: steps.is_needed.outputs.builder == 'true' || github.event_name == 'workflow_dispatch'
if: steps.is_needed.outputs.builder == 'true' || (github.event_name == 'workflow_dispatch' && inputs.replace == 'true')
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # 6.18.0
with:
context: apps/distroless/dart/build
Expand All @@ -131,7 +136,7 @@ jobs:
- name: Build and Push Image (runtime)
id: build-push-runtime
# Only run if the runtime image is needed or if the workflow is manually triggered
if: steps.is_needed.outputs.runtime == 'true' || github.event_name == 'workflow_dispatch'
if: steps.is_needed.outputs.runtime == 'true' || (github.event_name == 'workflow_dispatch' && inputs.replace == 'true')
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # 6.18.0
with:
context: apps/distroless/dart/build
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/distroless_flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Distroless (Flutter)

on:
workflow_dispatch:
inputs:
replace:
description: Replace the existing distroless image
type: boolean
default: false
pull_request:
paths:
- 'apps/distroless/bin/list_sdks.dart'
Expand Down Expand Up @@ -125,7 +130,7 @@ jobs:
- name: Build and Push Image (engine)
id: build-push-engine
# Only run if the engine image is needed or if the workflow is triggered manually
if: steps.is_needed.outputs.engine == 'true' || github.event_name == 'workflow_dispatch'
if: steps.is_needed.outputs.engine == 'true' || (github.event_name == 'workflow_dispatch' && inputs.replace == 'true')
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # 6.18.0
with:
context: apps/distroless/flutter/build
Expand All @@ -140,7 +145,7 @@ jobs:
- name: Build and Push Image (builder)
id: build-push-builder
# Only run if the builder image is needed or if the workflow is triggered manually
if: steps.is_needed.outputs.builder == 'true' || github.event_name == 'workflow_dispatch'
if: steps.is_needed.outputs.builder == 'true' || (github.event_name == 'workflow_dispatch' && inputs.replace == 'true')
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # 6.18.0
with:
context: apps/distroless/flutter/build
Expand All @@ -155,7 +160,7 @@ jobs:
- name: Build and Push Image (runtime)
id: build-push-runtime
# Only run if the runtime image is needed or if the workflow is triggered manually
if: steps.is_needed.outputs.runtime == 'true' || github.event_name == 'workflow_dispatch'
if: steps.is_needed.outputs.runtime == 'true' || (github.event_name == 'workflow_dispatch' && inputs.replace == 'true')
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # 6.18.0
with:
context: apps/distroless/flutter/build
Expand Down
Loading