.
This commit is contained in:
@ -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
|
|
||||||
@ -15,6 +15,9 @@ on:
|
|||||||
titles:
|
titles:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
osversion:
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -23,9 +26,6 @@ jobs:
|
|||||||
DOCKER_ORG: teacup
|
DOCKER_ORG: teacup
|
||||||
DOCKER_LATEST: nightly
|
DOCKER_LATEST: nightly
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [3.20.0, 3.21.0, 3.22.0]
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Build: checkout"
|
- name: "Build: checkout"
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -59,12 +59,12 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{ matrix.os }}
|
VERSION=${{ inputs.osversion }}
|
||||||
NAS_USER=dnke
|
NAS_USER=dnke
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
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 }}:${{ 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
|
${{ inputs.registry }}/${{ inputs.registry_username }}/${{ env.myTITLE }}:latest
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
Reference in New Issue
Block a user