Added readme and fixed credential refral
This commit is contained in:
@@ -4,24 +4,30 @@ on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
dockerfile:
|
||||
description: "Dockerfile to use for the build"
|
||||
required: true
|
||||
type: string
|
||||
default: Dockerfile
|
||||
git_user:
|
||||
require: true
|
||||
description: "Git user to use for checkout and the container registry"
|
||||
required: true
|
||||
type: string
|
||||
default: campenbe
|
||||
package-name:
|
||||
description: "Name of the package to build"
|
||||
required: true
|
||||
type: string
|
||||
package-label:
|
||||
description: "Label to use for the package"
|
||||
required: true
|
||||
type: string
|
||||
builder-image:
|
||||
description: "Container image to use for the build"
|
||||
required: false
|
||||
type: string
|
||||
default: gitea.ampenberger.com/campenbe/img-builder:3.21-1.24
|
||||
version:
|
||||
description: "Version string passed to the Docker build as build-arg"
|
||||
required: false
|
||||
type: string
|
||||
default: development
|
||||
@@ -45,7 +51,7 @@ jobs:
|
||||
container:
|
||||
image: ${{inputs.builder-image}}
|
||||
credentials:
|
||||
username: campenbe
|
||||
username: ${{inputs.git_user}}
|
||||
password: ${{secrets.PASSWORD}}
|
||||
|
||||
steps:
|
||||
@@ -65,7 +71,7 @@ jobs:
|
||||
|
||||
- name: Build container
|
||||
run: |
|
||||
buildah build -f ${{inputs.dockerfile}} --build-arg GIT_TOKEN=${{secrets.GIT_TOKEN}} --build-arg VERSION=${{inputs.version}} -t gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL}
|
||||
buildah build -f ${{inputs.dockerfile}} --build-arg GIT_TOKEN=${{secrets.GIT_TOKEN}} --build-arg VERSION=${{inputs.version}} -t gitea.ampenberger.com/${{inputs.git_user}}/${PACKAGE_NAME}:${LABEL}
|
||||
|
||||
echo "Built ${PACKAGE_NAME}:${LABEL}"
|
||||
buildah images
|
||||
|
||||
Reference in New Issue
Block a user