32 lines
736 B
YAML
32 lines
736 B
YAML
name: Docker build test
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
password:
|
|
required: true
|
|
type: string
|
|
image:
|
|
required: true
|
|
type: string
|
|
dockerfile:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ vars.CONTAINER_REGISTRY }}
|
|
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
|
|
password: ${{ inputs.password }}
|
|
- uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ${{ inputs.dockerfile }}
|
|
push: true
|
|
tags: ${{ vars.CONTAINER_REGISTRY }}/${{ inputs.image }}
|