set dockerfile even if empty string.

This commit is contained in:
Miroslav Šedivý 2025-03-30 11:33:42 +02:00
parent f396cea0a2
commit 3780bff07d
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: apps/${{ inputs.name }}
file: apps/${{ inputs.name }}/${{ inputs.dockerfile }}
file: apps/${{ inputs.name }}/${{ inputs.dockerfile || 'Dockerfile' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View file

@ -72,7 +72,7 @@ jobs:
- name: Generate base Dockerfile
env:
RUNTIME_DOCKERFILE: ${{ inputs.dockerfile }}
RUNTIME_DOCKERFILE: ${{ inputs.dockerfile || 'Dockerfile' }}
run: go run docker/main.go -i Dockerfile.tmpl -o Dockerfile -client client/dist
- name: Build and push