mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-23 00:26:59 +00:00
commit
feea00704f
10
.github/workflows/workflow.yaml
vendored
10
.github/workflows/workflow.yaml
vendored
@ -25,10 +25,14 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
default: reg.dev.krd
|
default: reg.dev.krd
|
||||||
required: false
|
required: false
|
||||||
|
timeout:
|
||||||
|
type: number
|
||||||
|
default: 10
|
||||||
|
required: false
|
||||||
|
|
||||||
runs-on:
|
runs-on:
|
||||||
type: string
|
type: string
|
||||||
default: "[ 'self-hosted', 'ubuntu-focal' ]"
|
default: "[ 'ubuntu-latest' ]"
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
@ -43,7 +47,7 @@ jobs:
|
|||||||
build-push:
|
build-push:
|
||||||
name: Build and Push
|
name: Build and Push
|
||||||
runs-on: ${{ fromJson(inputs.runs-on) }}
|
runs-on: ${{ fromJson(inputs.runs-on) }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: ${{ inputs.timeout }}
|
||||||
outputs:
|
outputs:
|
||||||
tag: ${{ fromJson(steps.meta.outputs.json).tags[0] }}
|
tag: ${{ fromJson(steps.meta.outputs.json).tags[0] }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
@ -78,7 +82,7 @@ jobs:
|
|||||||
password: ${{ secrets.password }}
|
password: ${{ secrets.password }}
|
||||||
|
|
||||||
- name: Build Docker images
|
- name: Build Docker images
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
file: ${{ inputs.file }}
|
file: ${{ inputs.file }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user