This commit is contained in:
devthejo 2023-11-15 17:44:31 +01:00
parent cdf59c84cb
commit be5beb632f
Signed by: devthejo
GPG key ID: C04215C627711F5C

View file

@ -2,6 +2,15 @@
name: Build name: Build
on: on:
workflow_call: workflow_call:
inputs:
context:
type: string
default: "."
required: false
dockerfile:
type: string
default: Dockerfile
required: false
secrets: secrets:
M8A_ORG_BOT_PACKAGE_TOKEN: M8A_ORG_BOT_PACKAGE_TOKEN:
required: true required: true
@ -24,8 +33,6 @@ jobs:
steps: steps:
- name: ⏬ Checkout code repository - name: ⏬ Checkout code repository
uses: actions/checkout@v4 uses: actions/checkout@v4
# with:
# path: build
- name: 📌 Extract metadata (tags, labels) for Docker - name: 📌 Extract metadata (tags, labels) for Docker
id: meta id: meta
@ -43,8 +50,8 @@ jobs:
- name: 📦 Build and push Docker image - name: 📦 Build and push Docker image
uses: https://git.devthefuture.org/devthefuture/actions/buildkit@main uses: https://git.devthefuture.org/devthefuture/actions/buildkit@main
with: with:
# context: . context: ${{ inputs.context }}
# file: Dockerfile file: ${{ inputs.dockerfile }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
registry: git.devthefuture.org registry: git.devthefuture.org