refactor(CI): Squash docker ci into one workflow (#17880)

* refactor(CI): Squash docker ci into one workflow

* fiddle with variable

* use proper dockerfile target
This commit is contained in:
Mike Delago
2024-01-08 13:37:05 -05:00
committed by GitHub
parent 89742ceacf
commit 8b2f411d19
2 changed files with 35 additions and 81 deletions

View File

@@ -13,6 +13,10 @@ inputs:
description: version tag to use for docker image
required: true
type: string
dockerfile:
description: dockerfile to use
required: false
default: apps/docker/Dockerfile
runs:
using: composite
steps:
@@ -29,7 +33,7 @@ runs:
uses: docker/build-push-action@v5
with:
context: ${{ github.workspace }}
file: apps/docker/Dockerfile
file: ${{ inputs.dockerfile }}
push: ${{ inputs.push }}
tags: ${{ steps.meta.outputs.tags }}
target: ${{ inputs.component-name }}