This commit is contained in:
USER
2025-10-18 12:44:58 +01:00
parent 9d4db0e672
commit 37d04bf109
4 changed files with 5 additions and 17 deletions

View File

@ -1,12 +0,0 @@
name: CI Workflow
on: [push]
jobs:
build_push:
uses: ./.github/workflows/build_push_container.yml
with:
registry: ${{ secrets.MY_REGISTRY }}
registry_username: ${{ secrets.MY_REGISTRY_USERNAME }}
registry_password: ${{ secrets.MY_REGISTRY_PASSWORD }}
titles: 'Your Image Title' # Specify any required titles or metadata if needed

View File

@ -15,6 +15,9 @@ on:
titles:
required: true
type: string
osversion:
required: true
type: number
jobs:
build:
@ -23,9 +26,6 @@ jobs:
DOCKER_ORG: teacup
DOCKER_LATEST: nightly
RUNNER_TOOL_CACHE: /toolcache
strategy:
matrix:
os: [3.20.0, 3.21.0, 3.22.0]
steps:
- name: "Build: checkout"
uses: actions/checkout@v4
@ -59,12 +59,12 @@ jobs:
uses: docker/build-push-action@v5
with:
build-args: |
VERSION=${{ matrix.os }}
VERSION=${{ inputs.osversion }}
NAS_USER=dnke
context: .
push: true
tags: |
${{ inputs.registry }}/${{ inputs.registry_username }}/${{ env.myTITLE }}:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
${{ inputs.registry }}/${{ inputs.registry_username }}/${{ env.myTITLE }}:${{ matrix.os }}
${{ inputs.registry }}/${{ inputs.registry_username }}/${{ env.myTITLE }}:${{ inputs.osversion }}
${{ inputs.registry }}/${{ inputs.registry_username }}/${{ env.myTITLE }}:latest
labels: ${{ steps.meta.outputs.labels }}