Skip to content

Commit 537f3f3

Browse files
committed
ci: Add fallback for build context
1 parent 53b0939 commit 537f3f3

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

.github/workflows/android-emu.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
uses: ./.github/workflows/publish-image.yml
1111
with:
1212
image-name: android-emu
13-
context: android-emu
1413
title: Android Emulator image
1514
tags: |
1615
${{ matrix.version }}

.github/workflows/android-sdk.yml

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
uses: ./.github/workflows/publish-image.yml
3434
with:
3535
image-name: ${{ needs.env.outputs.image-name }}
36-
context: android-sdk
3736
target: base
3837
platforms: linux/amd64,linux/arm64
3938
title: Android SDK base image

.github/workflows/danger-kotlin.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
uses: ./.github/workflows/publish-image.yml
1111
with:
1212
image-name: danger-kotlin
13-
context: danger-kotlin
1413
title: Danger Kotlin image
1514
tags: |
1615
${{ matrix.version }}

.github/workflows/publish-image.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
description: 'Location of build files'
1212
required: false
1313
type: string
14-
default: '-'
1514
title:
1615
description: 'Human-readable image title'
1716
required: true
@@ -78,7 +77,7 @@ jobs:
7877
- name: Build and push Docker images
7978
uses: docker/build-push-action@v5
8079
with:
81-
context: ${{ inputs.context }}
80+
context: ${{ inputs.context != null && inputs.context || inputs.image-name }}
8281
push: true
8382
build-args: ${{ inputs.build-args }}
8483
build-contexts: ${{ inputs.build-contexts }}

.github/workflows/ruby.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
uses: ./.github/workflows/publish-image.yml
1111
with:
1212
image-name: ruby
13-
context: ruby
1413
platforms: linux/amd64
1514
title: Ruby image
1615
tags: |

0 commit comments

Comments
 (0)