2024-08-02 21:40:28 +02:00
|
|
|
name: Docker build test
|
2024-08-02 17:54:58 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
2024-08-02 21:43:22 +02:00
|
|
|
password:
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-08-02 17:54:58 +02:00
|
|
|
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 }}
|
2024-08-02 21:53:34 +02:00
|
|
|
password: ${{ inputs.password }}
|
2024-08-02 17:54:58 +02:00
|
|
|
- uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ${{ inputs.dockerfile }}
|
|
|
|
push: true
|
|
|
|
tags: ${{ vars.CONTAINER_REGISTRY }}/${{ inputs.image }}
|