build and push docker image #33
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/docker-build-push-github.yaml@1f437ffcac108449db2ed508622e8593574b1a1d" # v1.7.0 | |
with: | |
runner: '["ubuntu-latest"]' | |
subpath: ${{ inputs.path }} | |
file: ${{ inputs.path }}/Dockerfile | |
context: ${{ inputs.path }} | |
tags: | | |
${{ github.sha }} | |
type=raw, value=rolling |