docker-images/.gitea/workflows/workflow-docker.yaml
2024-08-02 21:51:39 +02:00

31 lines
693 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 }}
- uses: docker/build-push-action@v6
with:
context: .
file: ${{ inputs.dockerfile }}
push: true
tags: ${{ vars.CONTAINER_REGISTRY }}/${{ inputs.image }}