build and push docker image #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: build and push docker image | |
on: | |
workflow_dispatch: | |
inputs: | |
path: | |
description: "path to directory containing the Dockerfile file, f.e. postgres-db-init" | |
required: true | |
type: string | |
jobs: | |
docker-build-push: | |
uses: "strg-at/github-workflows/.github/workflows/[email protected]" | |
with: | |
runner: '["ubuntu-latest"]' | |
subpath: ${{ inputs.path }} | |
file: ${{ inputs.path }}/Dockerfile | |
context: ${{ inputs.path }} | |
tags: | | |
${{ github.sha }} | |
type=raw, value=rolling |