This commit is contained in:
2024-08-02 17:54:58 +02:00
parent ddfa246fc1
commit 89a2d0883b
5 changed files with 61 additions and 15 deletions

View File

@ -0,0 +1,11 @@
on:
push:
branches:
- main
jobs:
build:
uses: ./.gitea/workflows/workflow-docker.yaml
with:
image: okami101/dotnet-qa:8.0
dockerfile: dotnet-qa.dockerfile

View File

@ -0,0 +1,11 @@
on:
push:
branches:
- main
jobs:
build:
uses: ./.gitea/workflows/workflow-docker.yaml
with:
image: okami101/frankenphp:8.3
dockerfile: frankenphp-83.dockerfile

View File

@ -0,0 +1,11 @@
on:
push:
branches:
- main
jobs:
build:
uses: ./.gitea/workflows/workflow-docker.yaml
with:
image: okami101/php-qa:8.3
dockerfile: php-qa-83.dockerfile

View File

@ -0,0 +1,28 @@
name: Docker build
on:
workflow_call:
inputs:
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: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- uses: docker/build-push-action@v6
with:
context: .
file: ${{ inputs.dockerfile }}
push: true
tags: ${{ vars.CONTAINER_REGISTRY }}/${{ inputs.image }}